From 75c55c0442764c263d7e48ce993595f76b5c3f31 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 22 Mar 2017 12:37:13 +0000 Subject: [PATCH] Revert "Tests" This reverts commit a070a7f6d607003a4a42d997e99361ead46a8294. --- tests/unit-tests/formatting/functions.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/unit-tests/formatting/functions.php b/tests/unit-tests/formatting/functions.php index 16250d40489..a132ad93976 100644 --- a/tests/unit-tests/formatting/functions.php +++ b/tests/unit-tests/formatting/functions.php @@ -531,15 +531,9 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case { delete_option( 'gmt_offset' ); $this->assertEquals( 'UTC', wc_timezone_string() ); - // test with manually set UTC offset. Will differ based on current DST! + // test with manually set UTC offset update_option( 'gmt_offset', -4 ); - $is_dst = (bool) date( 'I' ); - - if ( $is_dst ) { - $this->assertEquals( 'America/Boa_Vista', wc_timezone_string() ); - } else { - $this->assertEquals( 'America/Halifax', wc_timezone_string() ); - } + $this->assertEquals( 'America/Halifax', wc_timezone_string() ); // test with invalid offset update_option( 'gmt_offset', 99 );