Skip to content

Commit

Permalink
Merge pull request #1473 from jim-parry/fix3
Browse files Browse the repository at this point in the history
Fuzzify another time test
  • Loading branch information
jim-parry authored Nov 12, 2018
2 parents fafad96 + e300979 commit 6507c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/I18n/TimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function testCreateFromTimestamp()
public function testTestNow()
{
$this->assertFalse(Time::hasTestNow());
$this->assertEquals(date('Y-m-d H:i:s', time()), Time::now()->toDateTimeString());
$this->assertCloseEnoughString(date('Y-m-d H:i:s', time()), Time::now()->toDateTimeString());

$t = new Time('2000-01-02');
Time::setTestNow($t);
Expand All @@ -229,7 +229,7 @@ public function testTestNow()
$this->assertEquals('2000-01-02 00:00:00', Time::now()->toDateTimeString());

Time::setTestNow();
$this->assertEquals(date('Y-m-d H:i:s', time()), Time::now()->toDateTimeString());
$this->assertCloseEnoughString(date('Y-m-d H:i:s', time()), Time::now()->toDateTimeString());
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 6507c84

Please sign in to comment.