From 537d482da3be9cad312deb8d44993208c3725dbe Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 2 Feb 2024 11:45:55 -0800 Subject: [PATCH] Update test to use non-AVIF format since now supported --- tests/modules/images/webp-uploads/helper-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/images/webp-uploads/helper-tests.php b/tests/modules/images/webp-uploads/helper-tests.php index ac173e62ee..7197a4c9b5 100644 --- a/tests/modules/images/webp-uploads/helper-tests.php +++ b/tests/modules/images/webp-uploads/helper-tests.php @@ -233,7 +233,7 @@ public function it_should_prevent_to_upload_a_mime_that_is_not_supported_by_word $attachment_id = self::factory()->attachment->create_upload_object( TESTS_PLUGIN_DIR . '/tests/testdata/modules/images/leaves.jpg' ); - $result = webp_uploads_generate_image_size( $attachment_id, 'medium', 'image/avif' ); + $result = webp_uploads_generate_image_size( $attachment_id, 'medium', 'image/vnd.zbrush.pcx' ); $this->assertWPError( $result ); $this->assertSame( 'image_mime_type_invalid', $result->get_error_code() ); }