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(
|
return new User(
|
||||||
id: $user->getId(),
|
id: $user->getId(),
|
||||||
email: $user->getEmail(),
|
email: $user->getEmail(),
|
||||||
|
isAdmin: $user->isAdmin(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,6 +38,7 @@ class FakeUserRepository implements UserRepository
|
||||||
$user = new User(
|
$user = new User(
|
||||||
id: $id,
|
id: $id,
|
||||||
email: $dto->email,
|
email: $dto->email,
|
||||||
|
isAdmin: $dto->isAdmin,
|
||||||
);
|
);
|
||||||
$this->existingUsers[$id] = $user;
|
$this->existingUsers[$id] = $user;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue