Skip to content

Commit

Permalink
Merge pull request #1479 from jim-parry/fix5
Browse files Browse the repository at this point in the history
Yet another time test to fix
  • Loading branch information
jim-parry authored Nov 13, 2018
2 parents 469a8fb + 2dc6e18 commit fbe57ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/Helpers/DateHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public function setUp()
public function testNowDefault()
{
$time = new \DateTime();
$this->assertLessThan(1, abs(now() - time())); // close enough
$this->assertCloseEnough(now(), time()); // close enough
}

//--------------------------------------------------------------------

public function testNowSpecific()
{
// Chicago should be two hours ahead of Vancouver
$this->assertEquals(7200, now('America/Chicago') - now('America/Vancouver'));
$this->assertCloseEnough(7200, now('America/Chicago') - now('America/Vancouver'));
}

}

0 comments on commit fbe57ea

Please sign in to comment.