Fixed timezone problem in unit tests

This commit is contained in:
Constantin Graf
2024-09-30 10:58:33 +02:00
committed by Constantin Graf
parent 8b50f33cc9
commit 78ea8a673b
4 changed files with 13 additions and 10 deletions

View File

@@ -31,6 +31,8 @@ abstract class TestCase extends BaseTestCase
$mock->shouldReceive('getTrialUntil')->andReturn(null);
$mock->shouldReceive('isBlocked')->andReturn(false);
});
// Note: The following line can be used to test timezone edge cases.
// $this->travelTo(Carbon::now()->timezone('Europe/Vienna')->setHour(0)->setMinute(59)->setSecond(0));
}
protected function mockPrivateStorage(): void