From dfe51f6069ba62afc3cab8861a58d1772eee48fe Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 28 Aug 2019 02:19:46 +0000 Subject: [PATCH] Date/Time: Correct delta comparison in `test_should_return_wp_timestamp()`. See #25768. git-svn-id: https://develop.svn.wordpress.org/trunk@45902 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/date/dateI18n.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/date/dateI18n.php b/tests/phpunit/tests/date/dateI18n.php index 178f09181a..8f98c93ee6 100644 --- a/tests/phpunit/tests/date/dateI18n.php +++ b/tests/phpunit/tests/date/dateI18n.php @@ -115,8 +115,8 @@ class Tests_Date_I18n extends WP_UnitTestCase { $timestamp = $datetime->getTimestamp(); $wp_timestamp = $timestamp + $datetime->getOffset(); - $this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 2 ); - $this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 2 ); + $this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 'The dates should be equal', 2 ); + $this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 'The dates should be equal', 2 ); $this->assertEquals( $wp_timestamp, date_i18n( 'U', $wp_timestamp ) ); }