Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getUsers.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/getUsers.php
r48937 r51331 28 28 29 29 // Check data types. 30 $this->assertI nternalType( 'string',$result[0]['user_id'] );30 $this->assertIsString( $result[0]['user_id'] ); 31 31 $this->assertStringMatchesFormat( '%d', $result[0]['user_id'] ); 32 $this->assertI nternalType( 'string',$result[0]['username'] );33 $this->assertI nternalType( 'string',$result[0]['first_name'] );34 $this->assertI nternalType( 'string',$result[0]['last_name'] );32 $this->assertIsString( $result[0]['username'] ); 33 $this->assertIsString( $result[0]['first_name'] ); 34 $this->assertIsString( $result[0]['last_name'] ); 35 35 $this->assertInstanceOf( 'IXR_Date', $result[0]['registered'] ); 36 $this->assertI nternalType( 'string',$result[0]['bio'] );37 $this->assertI nternalType( 'string',$result[0]['email'] );38 $this->assertI nternalType( 'string',$result[0]['nickname'] );39 $this->assertI nternalType( 'string',$result[0]['nicename'] );40 $this->assertI nternalType( 'string',$result[0]['url'] );41 $this->assertI nternalType( 'string',$result[0]['display_name'] );42 $this->assertI nternalType( 'array',$result[0]['roles'] );36 $this->assertIsString( $result[0]['bio'] ); 37 $this->assertIsString( $result[0]['email'] ); 38 $this->assertIsString( $result[0]['nickname'] ); 39 $this->assertIsString( $result[0]['nicename'] ); 40 $this->assertIsString( $result[0]['url'] ); 41 $this->assertIsString( $result[0]['display_name'] ); 42 $this->assertIsArray( $result[0]['roles'] ); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.