Changeset 30524
- Timestamp:
- 11/22/2014 08:45:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r30276 r30524 319 319 320 320 /** 321 * @ticket 18897322 */323 function test_query_offset_and_paged() {324 $posts = $this->q->query('paged=2&offset=3');325 326 $expected = array (327 0 => 'many-trackbacks',328 1 => 'one-trackback',329 2 => 'comment-test',330 3 => 'lorem-ipsum',331 4 => 'cat-c',332 5 => 'cat-b',333 6 => 'cat-a',334 7 => 'cats-a-and-c',335 8 => 'cats-b-and-c',336 9 => 'cats-a-and-b',337 );338 339 $this->assertCount( 10, $posts );340 $this->assertTrue( $this->q->is_paged() );341 $this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );342 }343 344 /**345 321 * @ticket 11056 346 322 */
Note: See TracChangeset
for help on using the changeset viewer.