Undoing DB changes on tearDown() is not necessary
WP test suite starts a transaction when the test starts and roll it back when the test finishes. So it is not necessary to undo database changes using tearDown().
This commit is contained in:
parent
15e44897f6
commit
fb9aa71b33
|
@ -12,12 +12,6 @@
|
|||
*/
|
||||
class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
|
||||
|
||||
public function tearDown() {
|
||||
update_option( 'woocommerce_price_num_decimals', '2' );
|
||||
update_option( 'woocommerce_price_decimal_sep', '.' );
|
||||
update_option( 'woocommerce_price_thousand_sep', ',' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test wc_string_to_bool().
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue