@@ -34,19 +34,19 @@ public function testShouldNotBeFinal()
3434
3535 public function testCouldBeConstructedWithRequiredAttributes ()
3636 {
37- new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
37+ new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
3838 }
3939
4040 public function testShouldHaveCommandName ()
4141 {
42- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
42+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
4343
4444 $ this ->assertEquals ('enqueue:consume ' , $ command ->getName ());
4545 }
4646
4747 public function testShouldHaveExpectedOptions ()
4848 {
49- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
49+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
5050
5151 $ options = $ command ->getDefinition ()->getOptions ();
5252
@@ -64,7 +64,7 @@ public function testShouldHaveExpectedOptions()
6464
6565 public function testShouldHaveExpectedAttributes ()
6666 {
67- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
67+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
6868
6969 $ arguments = $ command ->getDefinition ()->getArguments ();
7070
@@ -104,7 +104,7 @@ public function testShouldBindDefaultQueueOnly()
104104 'enqueue.client.default.queue_consumer ' => $ consumer ,
105105 'enqueue.client.default.driver ' => $ driver ,
106106 'enqueue.client.default.delegate_processor ' => $ processor ,
107- ]));
107+ ]), ' default ' );
108108
109109 $ tester = new CommandTester ($ command );
110110 $ tester ->execute ([]);
@@ -164,7 +164,7 @@ public function testShouldUseRequestedClient()
164164 'enqueue.client.foo.queue_consumer ' => $ fooConsumer ,
165165 'enqueue.client.foo.driver ' => $ fooDriver ,
166166 'enqueue.client.foo.delegate_processor ' => $ fooProcessor ,
167- ]));
167+ ]), ' default ' );
168168
169169 $ tester = new CommandTester ($ command );
170170 $ tester ->execute ([
@@ -198,7 +198,7 @@ public function testThrowIfNotDefinedClientRequested()
198198 'enqueue.client.default.queue_consumer ' => $ consumer ,
199199 'enqueue.client.default.driver ' => $ driver ,
200200 'enqueue.client.default.delegate_processor ' => $ processor ,
201- ]));
201+ ]), ' default ' );
202202
203203 $ tester = new CommandTester ($ command );
204204
@@ -243,7 +243,7 @@ public function testShouldBindDefaultQueueIfRouteUseDifferentQueue()
243243 'enqueue.client.default.queue_consumer ' => $ consumer ,
244244 'enqueue.client.default.driver ' => $ driver ,
245245 'enqueue.client.default.delegate_processor ' => $ processor ,
246- ]));
246+ ]), ' default ' );
247247
248248 $ tester = new CommandTester ($ command );
249249 $ tester ->execute ([]);
@@ -295,7 +295,7 @@ public function testShouldBindCustomExecuteConsumptionAndUseCustomClientDestinat
295295 'enqueue.client.default.queue_consumer ' => $ consumer ,
296296 'enqueue.client.default.driver ' => $ driver ,
297297 'enqueue.client.default.delegate_processor ' => $ processor ,
298- ]));
298+ ]), ' default ' );
299299
300300 $ tester = new CommandTester ($ command );
301301 $ tester ->execute ([]);
@@ -336,7 +336,7 @@ public function testShouldBindUserProvidedQueues()
336336 'enqueue.client.default.queue_consumer ' => $ consumer ,
337337 'enqueue.client.default.driver ' => $ driver ,
338338 'enqueue.client.default.delegate_processor ' => $ processor ,
339- ]));
339+ ]), ' default ' );
340340
341341 $ tester = new CommandTester ($ command );
342342 $ tester ->execute ([
@@ -378,7 +378,7 @@ public function testShouldBindNotPrefixedQueue()
378378 'enqueue.client.default.queue_consumer ' => $ consumer ,
379379 'enqueue.client.default.driver ' => $ driver ,
380380 'enqueue.client.default.delegate_processor ' => $ processor ,
381- ]));
381+ ]), ' default ' );
382382
383383 $ tester = new CommandTester ($ command );
384384 $ tester ->execute ([
@@ -434,7 +434,7 @@ public function testShouldBindQueuesOnlyOnce()
434434 'enqueue.client.default.queue_consumer ' => $ consumer ,
435435 'enqueue.client.default.driver ' => $ driver ,
436436 'enqueue.client.default.delegate_processor ' => $ processor ,
437- ]));
437+ ]), ' default ' );
438438
439439 $ tester = new CommandTester ($ command );
440440 $ tester ->execute ([]);
@@ -475,7 +475,7 @@ public function testShouldNotBindExternalRoutes()
475475 'enqueue.client.default.queue_consumer ' => $ consumer ,
476476 'enqueue.client.default.driver ' => $ driver ,
477477 'enqueue.client.default.delegate_processor ' => $ processor ,
478- ]));
478+ ]), ' default ' );
479479
480480 $ tester = new CommandTester ($ command );
481481 $ tester ->execute ([]);
@@ -528,7 +528,7 @@ public function testShouldSkipQueueConsumptionAndUseCustomClientDestinationName(
528528 'enqueue.client.default.queue_consumer ' => $ consumer ,
529529 'enqueue.client.default.driver ' => $ driver ,
530530 'enqueue.client.default.delegate_processor ' => $ processor ,
531- ]));
531+ ]), ' default ' );
532532
533533 $ tester = new CommandTester ($ command );
534534 $ tester ->execute ([
0 commit comments