diff --git a/tests/modules/images/webp-uploads/helper-tests.php b/tests/modules/images/webp-uploads/helper-tests.php index 41c054364..c914be180 100644 --- a/tests/modules/images/webp-uploads/helper-tests.php +++ b/tests/modules/images/webp-uploads/helper-tests.php @@ -238,6 +238,8 @@ function () { * @test */ public function it_should_create_an_image_with_filter_webp_uploads_pre_generate_additional_image_source() { + remove_all_filters( 'webp_uploads_pre_generate_additional_image_source' ); + $attachment_id = $this->factory->attachment->create_upload_object( TESTS_PLUGIN_DIR . '/tests/testdata/modules/images/car.jpeg' ); add_filter(