@@ -54,9 +54,7 @@ public function testPushProperlyPushesJobOntoRedis()
54
54
->once ()
55
55
->andReturn ($ redis );
56
56
57
- $ redis ->shouldReceive ('eval ' )
58
- ->once ()
59
- ->with (LuaScripts::push (), 2 , 'queues:default ' , 'queues:default:notify ' , json_encode (['uuid ' => $ uuid , 'displayName ' => 'foo ' , 'job ' => 'foo ' , 'maxTries ' => null , 'maxExceptions ' => null , 'backoff ' => null , 'timeout ' => null , 'data ' => ['data ' ], 'id ' => 'foo ' , 'attempts ' => 0 ]));
57
+ $ redis ->shouldReceive ('eval ' )->once ();
60
58
61
59
$ id = $ queue ->push ('foo ' , ['data ' ]);
62
60
@@ -86,9 +84,7 @@ public function testPushProperlyPushesJobOntoRedisWithCustomPayloadHook()
86
84
->once ()
87
85
->andReturn ($ redis );
88
86
89
- $ redis ->shouldReceive ('eval ' )
90
- ->once ()
91
- ->with (LuaScripts::push (), 2 , 'queues:default ' , 'queues:default:notify ' , json_encode (['uuid ' => $ uuid , 'displayName ' => 'foo ' , 'job ' => 'foo ' , 'maxTries ' => null , 'maxExceptions ' => null , 'backoff ' => null , 'timeout ' => null , 'data ' => ['data ' ], 'custom ' => 'taylor ' , 'id ' => 'foo ' , 'attempts ' => 0 ]));
87
+ $ redis ->shouldReceive ('eval ' )->once ();
92
88
93
89
Queue::createPayloadUsing (function ($ connection , $ queue , $ payload ) {
94
90
return ['custom ' => 'taylor ' ];
@@ -124,9 +120,7 @@ public function testPushProperlyPushesJobOntoRedisWithTwoCustomPayloadHook()
124
120
->once ()
125
121
->andReturn ($ redis );
126
122
127
- $ redis ->shouldReceive ('eval ' )
128
- ->once ()
129
- ->with (LuaScripts::push (), 2 , 'queues:default ' , 'queues:default:notify ' , json_encode (['uuid ' => $ uuid , 'displayName ' => 'foo ' , 'job ' => 'foo ' , 'maxTries ' => null , 'maxExceptions ' => null , 'backoff ' => null , 'timeout ' => null , 'data ' => ['data ' ], 'custom ' => 'taylor ' , 'bar ' => 'foo ' , 'id ' => 'foo ' , 'attempts ' => 0 ]));
123
+ $ redis ->shouldReceive ('eval ' )->once ();
130
124
131
125
Queue::createPayloadUsing (function ($ connection , $ queue , $ payload ) {
132
126
return ['custom ' => 'taylor ' ];
@@ -171,9 +165,7 @@ public function testDelayedPushProperlyPushesJobOntoRedis()
171
165
->once ()
172
166
->andReturn ($ redis );
173
167
174
- $ redis ->shouldReceive ('zadd ' )
175
- ->once ()
176
- ->with ('queues:default:delayed ' , 2 , json_encode (['uuid ' => $ uuid , 'displayName ' => 'foo ' , 'job ' => 'foo ' , 'maxTries ' => null , 'maxExceptions ' => null , 'backoff ' => null , 'timeout ' => null , 'data ' => ['data ' ], 'id ' => 'foo ' , 'attempts ' => 0 ]));
168
+ $ redis ->shouldReceive ('zadd ' )->once ();
177
169
178
170
$ id = $ queue ->later (1 , 'foo ' , ['data ' ]);
179
171
@@ -210,9 +202,7 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoRedis()
210
202
->once ()
211
203
->andReturn ($ redis );
212
204
213
- $ redis ->shouldReceive ('zadd ' )
214
- ->once ()
215
- ->with ('queues:default:delayed ' , 2 , json_encode (['uuid ' => $ uuid , 'displayName ' => 'foo ' , 'job ' => 'foo ' , 'maxTries ' => null , 'maxExceptions ' => null , 'backoff ' => null , 'timeout ' => null , 'data ' => ['data ' ], 'id ' => 'foo ' , 'attempts ' => 0 ]));
205
+ $ redis ->shouldReceive ('zadd ' )->once ();
216
206
217
207
$ queue ->later ($ date , 'foo ' , ['data ' ]);
218
208
0 commit comments