@@ -28,19 +28,19 @@ public function testShouldNotBeFinal()
2828
2929 public function testCouldBeConstructedWithRequiredAttributes ()
3030 {
31- new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
31+ new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
3232 }
3333
3434 public function testShouldHaveCommandName ()
3535 {
36- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
36+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
3737
3838 $ this ->assertEquals ('enqueue:transport:consume ' , $ command ->getName ());
3939 }
4040
4141 public function testShouldHaveExpectedOptions ()
4242 {
43- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
43+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
4444
4545 $ options = $ command ->getDefinition ()->getOptions ();
4646
@@ -56,7 +56,7 @@ public function testShouldHaveExpectedOptions()
5656
5757 public function testShouldHaveExpectedAttributes ()
5858 {
59- $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class));
59+ $ command = new ConsumeCommand ($ this ->createMock (ContainerInterface::class), ' default ' );
6060
6161 $ arguments = $ command ->getDefinition ()->getArguments ();
6262
@@ -74,7 +74,7 @@ public function testShouldExecuteDefaultConsumption()
7474
7575 $ command = new ConsumeCommand (new Container ([
7676 'enqueue.transport.default.queue_consumer ' => $ consumer ,
77- ]));
77+ ]), ' default ' );
7878
7979 $ tester = new CommandTester ($ command );
8080 $ tester ->execute ([]);
@@ -98,7 +98,7 @@ public function testShouldExecuteCustomConsumption()
9898 $ command = new ConsumeCommand (new Container ([
9999 'enqueue.transport.default.queue_consumer ' => $ defaultConsumer ,
100100 'enqueue.transport.custom.queue_consumer ' => $ customConsumer ,
101- ]));
101+ ]), ' default ' );
102102
103103 $ tester = new CommandTester ($ command );
104104 $ tester ->execute (['--transport ' => 'custom ' ]);
@@ -114,7 +114,7 @@ public function testThrowIfNotDefinedTransportRequested()
114114
115115 $ command = new ConsumeCommand (new Container ([
116116 'enqueue.transport.default.queue_consumer ' => $ defaultConsumer ,
117- ]));
117+ ]), ' default ' );
118118
119119 $ tester = new CommandTester ($ command );
120120
0 commit comments