Changeset 45013 for branches/4.0/tests/phpunit/tests/query/results.php
- Timestamp:
- 03/26/2019 12:45:57 AM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 29860,29869,29954,30160,30530
- Property svn:mergeinfo changed
-
branches/4.0/tests/phpunit/tests/query/results.php
r30260 r45013 280 280 281 281 /** 282 * @ticket 18897283 */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 /**306 282 * @ticket 11056 307 283 */
Note: See TracChangeset
for help on using the changeset viewer.