- Timestamp:
- 07/10/2021 11:15:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r51367 r51397 692 692 693 693 $this->assertIsArray( $data['media_details']['sizes'], 'Could not retrieve the sizes data.' ); 694 $this->assert False( isset( $data['media_details']['sizes']['rest-api-test']['source_url'] ));694 $this->assertArrayNotHasKey( 'source_url', $data['media_details']['sizes']['rest-api-test'] ); 695 695 } 696 696 … … 1687 1687 $this->assertSame( $attachment->post_content, $data['description']['raw'] ); 1688 1688 } else { 1689 $this->assert False( isset( $data['caption']['raw'] ));1690 $this->assert False( isset( $data['description']['raw'] ));1689 $this->assertArrayNotHasKey( 'raw', $data['caption'] ); 1690 $this->assertArrayNotHasKey( 'raw', $data['description'] ); 1691 1691 } 1692 $this->assert True( isset( $data['media_details'] ));1692 $this->assertArrayHasKey( 'media_details', $data ); 1693 1693 1694 1694 if ( $attachment->post_parent ) {
Note: See TracChangeset
for help on using the changeset viewer.