Remove filter after running tests
This commit is contained in:
parent
26b188569b
commit
f2422a284a
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue