Skip to content

Commit

Permalink
php unit test case - remove all filters before test
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkaklotar committed May 3, 2022
1 parent 2839ad3 commit 2efa53a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/modules/images/webp-uploads/helper-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2efa53a

Please sign in to comment.