store is admin in fake user repo
This commit is contained in:
parent
4157710187
commit
dcb4df043e
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ class FakeUserRepository implements UserRepository
|
|||
return new User(
|
||||
id: $user->getId(),
|
||||
email: $user->getEmail(),
|
||||
isAdmin: $user->isAdmin(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -37,6 +38,7 @@ class FakeUserRepository implements UserRepository
|
|||
$user = new User(
|
||||
id: $id,
|
||||
email: $dto->email,
|
||||
isAdmin: $dto->isAdmin,
|
||||
);
|
||||
$this->existingUsers[$id] = $user;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue