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:
Rodrigo Primo 2018-07-19 09:59:39 -03:00
parent 15e44897f6
commit fb9aa71b33
1 changed files with 0 additions and 6 deletions

View File

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