Changeset 34531 for trunk/tests/phpunit/tests/user/query.php
- Timestamp:
- 09/25/2015 04:25:20 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/query.php
r32713 r34531 460 460 $query->prepare_query( array( 'number' => 8 ) ); 461 461 $this->assertNotEmpty( $query->query_limit ); 462 $this->assertEquals( 'LIMIT 8', $query->query_limit );462 $this->assertEquals( 'LIMIT 0, 8', $query->query_limit ); 463 463 464 464 // All values get reset … … 858 858 $this->assertEqualSets( $expected, $found ); 859 859 } 860 861 /** 862 * @ticket 25145 863 */ 864 public function test_paged() { 865 $users = $this->factory->user->create_many( 5 ); 866 867 $q = new WP_User_Query( array( 868 'number' => 2, 869 'paged' => 2, 870 'orderby' => 'ID', 871 'order' => 'DESC', // Avoid funkiness with user 1. 872 'fields' => 'ids', 873 ) ); 874 875 $this->assertEquals( array( $users[2], $users[1] ), $q->results ); 876 } 860 877 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)