extract auth test fakes
This commit is contained in:
parent
ae07a6ff7c
commit
64acbfad60
6 changed files with 58 additions and 29 deletions
15
backend/tests/Fakes/FakeClock.php
Normal file
15
backend/tests/Fakes/FakeClock.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Fakes;
|
||||
|
||||
use App\Auth\Clock;
|
||||
use DateTimeImmutable;
|
||||
use DateTimeZone;
|
||||
|
||||
class FakeClock implements Clock
|
||||
{
|
||||
public function now(): DateTimeImmutable
|
||||
{
|
||||
return new DateTimeImmutable('2026-05-18 12:00:00', new DateTimeZone('UTC'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue