store password hash in fake user repo
This commit is contained in:
parent
0f179e53c2
commit
a52bb18b13
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ class FakeUserRepository implements UserRepository
|
|||
return new User(
|
||||
id: $user->getId(),
|
||||
email: $user->getEmail(),
|
||||
passwordHash: $user->getPasswordHash(),
|
||||
isAdmin: $user->isAdmin(),
|
||||
);
|
||||
}
|
||||
|
|
@ -48,6 +49,7 @@ class FakeUserRepository implements UserRepository
|
|||
return new User(
|
||||
id: $user->getId(),
|
||||
email: $user->getEmail(),
|
||||
passwordHash: $user->getPasswordHash(),
|
||||
isAdmin: $user->isAdmin(),
|
||||
);
|
||||
}
|
||||
|
|
@ -58,6 +60,7 @@ class FakeUserRepository implements UserRepository
|
|||
$user = new User(
|
||||
id: $id,
|
||||
email: $dto->email,
|
||||
passwordHash: $dto->passwordHash,
|
||||
isAdmin: $dto->isAdmin,
|
||||
);
|
||||
$this->existingUsers[$id] = $user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue