Reset all after test

This commit is contained in:
Claudio Sanches 2020-07-27 22:07:46 -03:00
parent 0f091406df
commit de383971eb
1 changed files with 3 additions and 0 deletions

View File

@ -55,5 +55,8 @@ class WC_Cart_Test extends \WC_Unit_Test_Case {
// Reset.
update_option( 'woocommerce_shipping_cost_requires_address', $default_shipping_cost_requires_address );
$product->delete( true );
WC()->cart->get_customer()->set_shipping_country( 'GB' );
WC()->cart->get_customer()->set_shipping_state( '' );
WC()->cart->get_customer()->set_shipping_postcode( '' );
}
}