Fix the output of the query mock to actually get a user in the test case.
This commit is contained in:
parent
b88d99196d
commit
1c0109ba2f
@ -62,12 +62,14 @@ class UserRepositoryTest extends TestCase
|
||||
$databaseHandler
|
||||
->query(Argument::type('string'), Argument::type('array'))
|
||||
->willReturn([
|
||||
[
|
||||
'id' => 1,
|
||||
'name' => 'Dave Test',
|
||||
'email' => 'dave.test@email',
|
||||
'password' => $hashedPassword,
|
||||
'created_at' => '2024-11-17T00:00:00',
|
||||
'updated_at' => '2024-11-17T00:00:00'
|
||||
]
|
||||
], []);
|
||||
|
||||
$userRepository = new UserRepository(
|
||||
|
Loading…
Reference in New Issue
Block a user