extract auth test fakes
This commit is contained in:
parent
ae07a6ff7c
commit
64acbfad60
6 changed files with 58 additions and 29 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue