diff --git a/tests/phpunit/tests/query/results.php b/tests/phpunit/tests/query/results.php
index 46a7a9b..f65afdf 100644
|
a
|
b
|
class Tests_Query_Results extends WP_UnitTestCase { |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
| | 282 | * @ticket 18897 |
| | 283 | */ |
| | 284 | function test_query_offset_and_paged() { |
| | 285 | $posts = $this->q->query('paged=2&offset=3'); |
| | 286 | |
| | 287 | $expected = array ( |
| | 288 | 0 => 'many-trackbacks', |
| | 289 | 1 => 'one-trackback', |
| | 290 | 2 => 'comment-test', |
| | 291 | 3 => 'lorem-ipsum', |
| | 292 | 4 => 'cat-c', |
| | 293 | 5 => 'cat-b', |
| | 294 | 6 => 'cat-a', |
| | 295 | 7 => 'cats-a-and-c', |
| | 296 | 8 => 'cats-b-and-c', |
| | 297 | 9 => 'cats-a-and-b', |
| | 298 | ); |
| | 299 | |
| | 300 | $this->assertCount( 10, $posts ); |
| | 301 | $this->assertTrue( $this->q->is_paged() ); |
| | 302 | $this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) ); |
| | 303 | } |
| | 304 | |
| | 305 | /** |
| 282 | 306 | * @ticket 11056 |
| 283 | 307 | */ |
| 284 | 308 | function test_query_post_parent__in() { |