File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -217,27 +217,27 @@ public function onQueue(string $queue)
217
217
}
218
218
219
219
/**
220
- * Specify additional option .
220
+ * Get the queue used by the pending batch .
221
221
*
222
- * @param string $key
223
- * @param mixed $value
224
- * @return $this
222
+ * @return string|null
225
223
*/
226
- public function addOption ( string $ key , $ value )
224
+ public function queue ( )
227
225
{
228
- $ this ->options [$ key ] = $ value ;
229
-
230
- return $ this ;
226
+ return $ this ->options ['queue ' ] ?? null ;
231
227
}
232
228
233
229
/**
234
- * Get the queue used by the pending batch.
230
+ * Add additional data into the batch's options array .
235
231
*
236
- * @return string|null
232
+ * @param string $key
233
+ * @param mixed $value
234
+ * @return $this
237
235
*/
238
- public function queue ( )
236
+ public function withOption ( string $ key , $ value )
239
237
{
240
- return $ this ->options ['queue ' ] ?? null ;
238
+ $ this ->options [$ key ] = $ value ;
239
+
240
+ return $ this ;
241
241
}
242
242
243
243
/**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function test_pending_batch_may_be_configured_and_dispatched()
41
41
//
42
42
})->catch (function () {
43
43
//
44
- })->allowFailures ()->onConnection ('test-connection ' )->onQueue ('test-queue ' )->addOption ('extra-option ' , 123 );
44
+ })->allowFailures ()->onConnection ('test-connection ' )->onQueue ('test-queue ' )->withOption ('extra-option ' , 123 );
45
45
46
46
$ this ->assertSame ('test-connection ' , $ pendingBatch ->connection ());
47
47
$ this ->assertSame ('test-queue ' , $ pendingBatch ->queue ());
You can’t perform that action at this time.
0 commit comments