Skip to content

Commit

Permalink
Merge pull request #967 from WordPress/fix/tests-for-wp65
Browse files Browse the repository at this point in the history
Update test to use non-AVIF format since now supported in 6.5-alpha

Co-authored-by: westonruter <[email protected]>
Co-authored-by: adamsilverstein <[email protected]>
Co-authored-by: joemcgill <[email protected]>
  • Loading branch information
4 people authored Feb 2, 2024
2 parents 6b3494c + 537d482 commit 9cc0c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/modules/images/webp-uploads/helper-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
Expand Down

0 comments on commit 9cc0c2f

Please sign in to comment.