Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/wp/getUsers.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getUsers.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getUsers.php
r46586 r47122 27 27 $this->assertNotIXRError( $result ); 28 28 29 // check data types29 // Check data types. 30 30 $this->assertInternalType( 'string', $result[0]['user_id'] ); 31 31 $this->assertStringMatchesFormat( '%d', $result[0]['user_id'] ); … … 63 63 } 64 64 65 // test a single role ('editor')65 // Test a single role ('editor'). 66 66 $filter = array( 'role' => 'editor' ); 67 67 $results = $this->myxmlrpcserver->wp_getUsers( array( 1, 'administrator', 'administrator', $filter ) ); … … 70 70 $this->assertEquals( $editor_id, $results[0]['user_id'] ); 71 71 72 // test 'authors', which should return all non-subscribers72 // Test 'authors', which should return all non-subscribers. 73 73 $filter2 = array( 'who' => 'authors' ); 74 74 $results2 = $this->myxmlrpcserver->wp_getUsers( array( 1, 'administrator', 'administrator', $filter2 ) ); … … 102 102 } while ( count( $presults ) > 0 ); 103 103 104 // verify that $user_ids matches $users_found104 // Verify that $user_ids matches $users_found. 105 105 $this->assertEquals( 0, count( array_diff( $user_ids, $users_found ) ) ); 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.