Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getMediaItem.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/getMediaItem.php
r49184 r51331 51 51 52 52 // Check data types. 53 $this->assertI nternalType( 'string',$result['attachment_id'] );54 $this->assertI nternalType( 'int',$result['parent'] );55 $this->assertI nternalType( 'string',$result['title'] );53 $this->assertIsString( $result['attachment_id'] ); 54 $this->assertIsInt( $result['parent'] ); 55 $this->assertIsString( $result['title'] ); 56 56 $this->assertInstanceOf( 'IXR_Date', $result['date_created_gmt'] ); 57 $this->assertI nternalType( 'string',$result['caption'] );58 $this->assertI nternalType( 'string',$result['description'] );59 $this->assertI nternalType( 'string',$result['link'] );60 $this->assertI nternalType( 'string',$result['thumbnail'] );61 $this->assertI nternalType( 'array',$result['metadata'] );57 $this->assertIsString( $result['caption'] ); 58 $this->assertIsString( $result['description'] ); 59 $this->assertIsString( $result['link'] ); 60 $this->assertIsString( $result['thumbnail'] ); 61 $this->assertIsArray( $result['metadata'] ); 62 62 63 63 // Check expected values.
Note: See TracChangeset
for help on using the changeset viewer.