Skip to content

Commit 2f65d47

Browse files
Remove $mime_type variable
1 parent f1395f6 commit 2f65d47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugins/webp-uploads/tests/test-load.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,11 +1092,9 @@ public function test_it_should_generate_fallback_images_for_all_sizes_when_gener
10921092
* Create the original mime type for WebP images.
10931093
*/
10941094
public function test_that_it_should_convert_webp_to_avif_on_upload(): void {
1095-
$mime_type = 'image/avif';
1096-
1097-
// Ensure the MIME type is supported; skip the test if not.
1098-
if ( ! webp_uploads_mime_type_supported( $mime_type ) ) {
1099-
$this->markTestSkipped( 'Mime type ' . $mime_type . ' is not supported.' );
1095+
// Ensure the AVIF MIME type is supported; skip the test if not.
1096+
if ( ! webp_uploads_mime_type_supported( 'image/avif' ) ) {
1097+
$this->markTestSkipped( 'Mime type image/avif is not supported.' );
11001098
}
11011099

11021100
$this->set_image_output_type( 'avif' );

0 commit comments

Comments
 (0)