Changeset 48937 for trunk/tests/phpunit/tests/image/siteIcon.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/siteIcon.php
r47198 r48937 37 37 } 38 38 39 $this->assert Equals( $sizes, $image_sizes );39 $this->assertSame( $sizes, $image_sizes ); 40 40 } 41 41 … … 53 53 54 54 // All icon sizes should be part of the array, including sizes added through the filter. 55 $this->assert Equals( $sizes, $image_sizes );55 $this->assertSame( $sizes, $image_sizes ); 56 56 57 57 // Remove custom size. … … 73 73 } 74 74 75 $this->assert Equals( $sizes, $image_sizes );75 $this->assertSame( $sizes, $image_sizes ); 76 76 } 77 77 … … 93 93 94 94 // All icon sizes should be part of the array, including sizes added through the filter. 95 $this->assert Equals( $sizes, $image_sizes );95 $this->assertSame( $sizes, $image_sizes ); 96 96 97 97 // Remove custom size. … … 106 106 $object = $this->wp_site_icon->create_attachment_object( $cropped, $attachment_id ); 107 107 108 $this->assert Equals( $object['post_title'], 'cropped-test-image.jpg' );109 $this->assert Equals( $object['context'], 'site-icon' );110 $this->assert Equals( $object['post_mime_type'], 'image/jpeg' );111 $this->assert Equals( $object['post_content'], $cropped );112 $this->assert Equals( $object['guid'], $cropped );108 $this->assertSame( $object['post_title'], 'cropped-test-image.jpg' ); 109 $this->assertSame( $object['context'], 'site-icon' ); 110 $this->assertSame( $object['post_mime_type'], 'image/jpeg' ); 111 $this->assertSame( $object['post_content'], $cropped ); 112 $this->assertSame( $object['guid'], $cropped ); 113 113 } 114 114
Note: See TracChangeset
for help on using the changeset viewer.