- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r50463 r51331 659 659 remove_image_size( 'rest-api-test' ); 660 660 661 $this->assertI nternalType( 'array',$data['media_details']['sizes'], 'Could not retrieve the sizes data.' );661 $this->assertIsArray( $data['media_details']['sizes'], 'Could not retrieve the sizes data.' ); 662 662 $this->assertSame( $image_src[0], $data['media_details']['sizes']['rest-api-test']['source_url'] ); 663 663 $this->assertSame( 'image/jpeg', $data['media_details']['sizes']['rest-api-test']['mime_type'] ); … … 691 691 remove_image_size( 'rest-api-test' ); 692 692 693 $this->assertI nternalType( 'array',$data['media_details']['sizes'], 'Could not retrieve the sizes data.' );693 $this->assertIsArray( $data['media_details']['sizes'], 'Could not retrieve the sizes data.' ); 694 694 $this->assertFalse( isset( $data['media_details']['sizes']['rest-api-test']['source_url'] ) ); 695 695 }
Note: See TracChangeset
for help on using the changeset viewer.