update fake token generator to take a preset number of tokens

This commit is contained in:
Yisroel Baum 2026-05-20 10:22:10 +03:00
parent 414679f15b
commit 56b528999e
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 18 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class CreateSessionTest extends TestCase
protected function setUp(): void
{
$this->sessionRepo = new FakeSessionRepository();
$this->tokenGenerator = new FakeTokenGenerator();
$this->tokenGenerator = new FakeTokenGenerator(['fake-token-123']);
$this->clock = new FakeClock(
new DateTimeImmutable('2026-05-18 12:00:00')
);