From d08504497024f04598e31a2e82a475250735c735 Mon Sep 17 00:00:00 2001 From: Steve Grunwell Date: Thu, 12 Mar 2020 16:00:01 +0000 Subject: [PATCH] Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method --- tests/unit-tests/crud/data.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/unit-tests/crud/data.php b/tests/unit-tests/crud/data.php index a0396597c84..269e37e7563 100644 --- a/tests/unit-tests/crud/data.php +++ b/tests/unit-tests/crud/data.php @@ -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. */