test password login

This commit is contained in:
Yisroel Baum 2026-07-31 11:34:50 +03:00
parent 879c294582
commit 93f5f022e4
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 220 additions and 0 deletions

View file

@ -20,6 +20,7 @@ class EloquentSessionRepositoryTest extends TestCase
{
$user = app(UserRepository::class)->create(new CreateUserDto(
email: new EmailAddress('user@example.com'),
password: 'correct-password',
));
$createdAt = $this->utc('2026-07-31T12:00:00');
$expiresAt = $this->utc('2026-08-07T12:00:00');
@ -61,6 +62,7 @@ class EloquentSessionRepositoryTest extends TestCase
{
$user = app(UserRepository::class)->create(new CreateUserDto(
email: new EmailAddress('user@example.com'),
password: 'correct-password',
));
$repository = app(SessionRepository::class);
$repository->create(new CreateSessionDto(