Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getUser.php
r50463 r51331 70 70 71 71 // Check data types. 72 $this->assertI nternalType( 'string',$result['user_id'] );72 $this->assertIsString( $result['user_id'] ); 73 73 $this->assertStringMatchesFormat( '%d', $result['user_id'] ); 74 $this->assertI nternalType( 'string',$result['username'] );75 $this->assertI nternalType( 'string',$result['first_name'] );76 $this->assertI nternalType( 'string',$result['last_name'] );74 $this->assertIsString( $result['username'] ); 75 $this->assertIsString( $result['first_name'] ); 76 $this->assertIsString( $result['last_name'] ); 77 77 $this->assertInstanceOf( 'IXR_Date', $result['registered'] ); 78 $this->assertI nternalType( 'string',$result['bio'] );79 $this->assertI nternalType( 'string',$result['email'] );80 $this->assertI nternalType( 'string',$result['nickname'] );81 $this->assertI nternalType( 'string',$result['nicename'] );82 $this->assertI nternalType( 'string',$result['url'] );83 $this->assertI nternalType( 'string',$result['display_name'] );84 $this->assertI nternalType( 'array',$result['roles'] );78 $this->assertIsString( $result['bio'] ); 79 $this->assertIsString( $result['email'] ); 80 $this->assertIsString( $result['nickname'] ); 81 $this->assertIsString( $result['nicename'] ); 82 $this->assertIsString( $result['url'] ); 83 $this->assertIsString( $result['display_name'] ); 84 $this->assertIsArray( $result['roles'] ); 85 85 86 86 // Check expected values.
Note: See TracChangeset
for help on using the changeset viewer.