Remove filter after running tests

This commit is contained in:
claudiulodro 2018-10-11 10:27:58 -07:00
parent 26b188569b
commit f2422a284a
1 changed files with 7 additions and 0 deletions

View File

@ -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.
*