Skip to content
Permalink
Browse files

Date/Time: Correct delta comparison in `test_should_return_wp_timesta…

…mp()`.

See #25768.

git-svn-id: https://develop.svn.wordpress.org/trunk@45902 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 28, 2019
1 parent a4723ed commit dfe51f6069ba62afc3cab8861a58d1772eee48fe
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/phpunit/tests/date/dateI18n.php
@@ -115,8 +115,8 @@ public function test_should_return_wp_timestamp() {
$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 ) );
}

0 comments on commit dfe51f6

Please sign in to comment.
You can’t perform that action at this time.