Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method

This commit is contained in:
Steve Grunwell 2020-03-12 16:00:01 +00:00
parent 0a5161ea3d
commit d085044970
1 changed files with 0 additions and 9 deletions

View File

@ -22,15 +22,6 @@ class WC_Tests_CRUD_Data extends WC_Unit_Test_Case {
update_option( 'timezone_string', '' );
}
public function onNotSuccessfulTest( $e ) {
// @codingStandardsIgnoreStart
date_default_timezone_set( 'UTC' );
// @codingStandardsIgnoreEnd
update_option( 'gmt_offset', 0 );
update_option( 'timezone_string', '' );
parent::onNotSuccessfulTest( $e );
}
/**
* Create a test post we can add/test meta against.
*/