fix(CleanupRedisTest): update mock return values for hgetall to reflect job processing state
This commit is contained in:
parent
3d260d6c29
commit
4055c1790b
1 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,11 @@
|
||||||
// Mock command() for hgetall to get job data
|
// Mock command() for hgetall to get job data
|
||||||
$redisMock->shouldReceive('command')
|
$redisMock->shouldReceive('command')
|
||||||
->with('hgetall', Mockery::any())
|
->with('hgetall', Mockery::any())
|
||||||
->andReturn(['status' => 'pending', 'payload' => '{}']);
|
->andReturn([
|
||||||
|
'status' => 'processing',
|
||||||
|
'reserved_at' => time() - 60, // Started 1 minute ago
|
||||||
|
'payload' => json_encode(['displayName' => 'TestJob']),
|
||||||
|
]);
|
||||||
|
|
||||||
Redis::shouldReceive('connection')
|
Redis::shouldReceive('connection')
|
||||||
->with('horizon')
|
->with('horizon')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue