diff --git a/tests/unit-tests/importer/product.php b/tests/unit-tests/importer/product.php index 468e82941c4..042b7152286 100644 --- a/tests/unit-tests/importer/product.php +++ b/tests/unit-tests/importer/product.php @@ -31,6 +31,13 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case { add_filter( 'woocommerce_product_csv_importer_check_import_file_path', '__return_false' ); } + /** + * Remove filters. + */ + public function tearDown() { + remove_filter( 'woocommerce_product_csv_importer_check_import_file_path', '__return_false' ); + } + /** * Get CSV mapped items. *