summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit
diff options
context:
space:
mode:
authorSergey Biryukov <sergeybiryukov@git.wordpress.org>2019-10-25 15:09:30 +0000
committerSergey Biryukov <sergeybiryukov@git.wordpress.org>2019-10-25 15:09:30 +0000
commitee5227550d34477823b5907c6ed8ca198b5904a5 (patch)
tree73101811b9ef2db99a1afc1e4a67974f410a9f1c /tests/phpunit
parent4b1dd6e54988776227f72507c72cd81a4b337004 (diff)
downloadwordpress-ee5227550d34477823b5907c6ed8ca198b5904a5.tar.gz
wordpress-ee5227550d34477823b5907c6ed8ca198b5904a5.zip
Date/Time: Remove incomplete and redundant test for `get_post_time()` added in [46580].
There is no functional difference between `gmt_offset` and `timezone_string` timezone modes for the issue. See #48384. git-svn-id: https://develop.svn.wordpress.org/trunk@46583 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit')
-rw-r--r--tests/phpunit/tests/date/postTime.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/phpunit/tests/date/postTime.php b/tests/phpunit/tests/date/postTime.php
index 14115704ae..1380c48160 100644
--- a/tests/phpunit/tests/date/postTime.php
+++ b/tests/phpunit/tests/date/postTime.php
@@ -66,30 +66,6 @@ class Tests_Date_Post_Time extends WP_UnitTestCase {
/**
* @ticket 48384
*/
- public function test_should_keep_utc_time_on_timezone_change_with_gmt_offset() {
- // Set the timezone to UTC+0.
- update_option( 'gmt_offset', 0 );
-
- $datetime = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) );
- $mysql = $datetime->format( 'Y-m-d H:i:s' );
- $rfc3339 = $datetime->format( DATE_RFC3339 );
- $post_id = self::factory()->post->create(
- array(
- 'post_date' => $mysql,
- 'post_modified' => $mysql,
- )
- );
-
- // Change the timezone to UTC+2.
- update_option( 'gmt_offset', 2 );
-
- $this->assertEquals( $rfc3339, get_post_time( DATE_RFC3339, true, $post_id ) );
- $this->assertEquals( $rfc3339, get_post_modified_time( DATE_RFC3339, true, $post_id ) );
- }
-
- /**
- * @ticket 48384
- */
public function test_should_keep_utc_time_on_timezone_change() {
$timezone = 'UTC';
update_option( 'timezone_string', $timezone );