Revert "Tests"

This reverts commit a070a7f6d6.
This commit is contained in:
Mike Jolley 2017-03-22 12:37:13 +00:00
parent a070a7f6d6
commit 75c55c0442
1 changed files with 2 additions and 8 deletions

View File

@ -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 );