Changeset 56815 for trunk/tests/phpunit/tests/query/invalidQueries.php
- Timestamp:
- 10/10/2023 11:20:28 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/invalidQueries.php
r52577 r56815 160 160 $this->assertCount( 1, $query->posts ); 161 161 } 162 163 /** 164 * Ensure a non-scalar page parameter does not throw a fatal error for trim(). 165 * 166 * @ticket 56558 167 * @covers WP_Query::get_posts 168 */ 169 public function test_non_scalar_page_value() { 170 $query = new WP_Query( 171 array( 172 'page' => array( 1, 2, 3 ), 173 ) 174 ); 175 176 $this->assertSame( 0, $query->query_vars['page'] ); 177 } 162 178 }
Note: See TracChangeset
for help on using the changeset viewer.