diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index d7ab6747dc..216fc6a00a 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -2827,6 +2827,7 @@ EOF; function test_wp_image_file_matches_image_meta_no_subsizes() { $image_meta = wp_get_attachment_metadata( self::$large_id ); $image_src = wp_get_attachment_image_url( self::$large_id, 'full' ); + $image_meta['sizes'] = array(); $this->assertTrue( wp_image_file_matches_image_meta( $image_src, $image_meta ) );