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
|
$databaseHandler
|
||||||
->query(Argument::type('string'), Argument::type('array'))
|
->query(Argument::type('string'), Argument::type('array'))
|
||||||
->willReturn([
|
->willReturn([
|
||||||
|
[
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'name' => 'Dave Test',
|
'name' => 'Dave Test',
|
||||||
'email' => 'dave.test@email',
|
'email' => 'dave.test@email',
|
||||||
'password' => $hashedPassword,
|
'password' => $hashedPassword,
|
||||||
'created_at' => '2024-11-17T00:00:00',
|
'created_at' => '2024-11-17T00:00:00',
|
||||||
'updated_at' => '2024-11-17T00:00:00'
|
'updated_at' => '2024-11-17T00:00:00'
|
||||||
|
]
|
||||||
], []);
|
], []);
|
||||||
|
|
||||||
$userRepository = new UserRepository(
|
$userRepository = new UserRepository(
|
||||||
|
Loading…
Reference in New Issue
Block a user