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
This commit is contained in:
parent
a4723edc50
commit
dfe51f6069
@ -115,8 +115,8 @@ class Tests_Date_I18n extends WP_UnitTestCase {
|
|||||||
$timestamp = $datetime->getTimestamp();
|
$timestamp = $datetime->getTimestamp();
|
||||||
$wp_timestamp = $timestamp + $datetime->getOffset();
|
$wp_timestamp = $timestamp + $datetime->getOffset();
|
||||||
|
|
||||||
$this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 2 );
|
$this->assertEquals( $wp_timestamp, date_i18n( 'U' ), 'The dates should be equal', 2 );
|
||||||
$this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 2 );
|
$this->assertEquals( $timestamp, date_i18n( 'U', false, true ), 'The dates should be equal', 2 );
|
||||||
$this->assertEquals( $wp_timestamp, date_i18n( 'U', $wp_timestamp ) );
|
$this->assertEquals( $wp_timestamp, date_i18n( 'U', $wp_timestamp ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user