Skip to content

Commit 2efa53a

Browse files
committed
php unit test case - remove all filters before test
1 parent 2839ad3 commit 2efa53a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎tests/modules/images/webp-uploads/helper-tests.php

+2
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ function () {
238238
* @test
239239
*/
240240
public function it_should_create_an_image_with_filter_webp_uploads_pre_generate_additional_image_source() {
241+
remove_all_filters( 'webp_uploads_pre_generate_additional_image_source' );
242+
241243
$attachment_id = $this->factory->attachment->create_upload_object( TESTS_PLUGIN_DIR . '/tests/testdata/modules/images/car.jpeg' );
242244

243245
add_filter(

0 commit comments

Comments
 (0)