extract auth test fakes

This commit is contained in:
Yisroel Baum 2026-05-18 22:01:45 +03:00
parent ae07a6ff7c
commit 64acbfad60
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
6 changed files with 58 additions and 29 deletions

View file

@ -2,6 +2,7 @@
namespace Tests\Unit\Auth\UseCases;
use App\Auth\CreateSessionDto;
use App\Auth\UseCases\Logout\Logout;
use App\Shared\ValueObject\EmailAddress;
use App\User\User;
@ -24,7 +25,7 @@ class LogoutTest extends TestCase
$email = new EmailAddress('user@example.com');
$user = new User(1, $email, 'hashed-password');
$session = $this->sessionRepo->create(new \App\Auth\CreateSessionDto(
$session = $this->sessionRepo->create(new CreateSessionDto(
'session-token',
$user,
new \DateTimeImmutable(),