Changeset 49046
- Timestamp:
- 09/25/2020 02:09:32 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r49044 r49046 605 605 remove_image_size( 'rest-api-test' ); 606 606 607 $this->assert NotEmpty( $data['media_details']['sizes']);607 $this->assertInternalType( 'array', $data['media_details']['sizes'], 'Could not retrieve the sizes data.' ); 608 608 $this->assertSame( $image_src[0], $data['media_details']['sizes']['rest-api-test']['source_url'] ); 609 609 $this->assertSame( 'image/jpeg', $data['media_details']['sizes']['rest-api-test']['mime_type'] ); … … 634 634 remove_image_size( 'rest-api-test' ); 635 635 636 $this->assert NotEmpty( $data['media_details']['sizes']);636 $this->assertInternalType( 'array', $data['media_details']['sizes'], 'Could not retrieve the sizes data.' ); 637 637 $this->assertFalse( isset( $data['media_details']['sizes']['rest-api-test']['source_url'] ) ); 638 638 }
Note: See TracChangeset
for help on using the changeset viewer.