Skip to content

Commit ca93839

Browse files
committed
test: fix time dependent test
1 parent 87bd5ff commit ca93839

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/system/I18n/TimeTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ public function testAgeNow()
395395

396396
public function testAgeFuture()
397397
{
398+
Time::setTestNow('June 20, 2022', 'America/Chicago');
398399
$time = Time::parse('August 12, 2116 4:15:23pm');
399400

400401
$this->assertSame(0, $time->age);

0 commit comments

Comments
 (0)