Changeset 47122 for trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php
r46586 r47122 11 11 parent::setUp(); 12 12 13 // create a super-admin13 // Create a super admin. 14 14 $this->administrator_id = $this->make_user_by_role( 'administrator' ); 15 15 if ( is_multisite() ) { … … 76 76 $this->assertNotIXRError( $result ); 77 77 78 // check data types78 // Check data types. 79 79 $this->assertInternalType( 'string', $result['user_id'] ); 80 80 $this->assertStringMatchesFormat( '%d', $result['user_id'] ); … … 91 91 $this->assertInternalType( 'array', $result['roles'] ); 92 92 93 // check expected values93 // Check expected values. 94 94 $this->assertEquals( $user_id, $result['user_id'] ); 95 95 $this->assertEquals( $user_data['user_login'], $result['username'] );
Note: See TracChangeset
for help on using the changeset viewer.