22
33namespace Illuminate \Tests \Integration \Bus ;
44
5-
65use Illuminate \Bus \Queueable ;
76use Illuminate \Contracts \Queue \ShouldQueue ;
87use Illuminate \Foundation \Bus \Attributes \OnConnection ;
@@ -20,8 +19,8 @@ public function testDispatchWhereQueueAndConnectionAreFromAttributes(): void
2019 FakeJobWithOnQueueAndOnConnection::dispatch (123 );
2120
2221 Queue::assertPushed (function (FakeJobWithOnQueueAndOnConnection $ job ) {
23- return $ job ->connection === " connection_from_attribute "
24- && $ job ->queue === " queue-from-attribute "
22+ return $ job ->connection === ' connection_from_attribute '
23+ && $ job ->queue === ' queue-from-attribute '
2524 && $ job ->value === 123 ;
2625 });
2726 }
@@ -30,11 +29,11 @@ public function testDispatchWhereQueueIsFromAttribute(): void
3029 {
3130 Queue::fake ();
3231
33- FakeJobWithOnQueueFromAttribute::dispatch (1234 )->onConnection (" not-from-attribute " );
32+ FakeJobWithOnQueueFromAttribute::dispatch (1234 )->onConnection (' not-from-attribute ' );
3433
3534 Queue::assertPushed (function (FakeJobWithOnQueueFromAttribute $ job ) {
36- return $ job ->connection === " not-from-attribute "
37- && $ job ->queue === " queue-from-attribute "
35+ return $ job ->connection === ' not-from-attribute '
36+ && $ job ->queue === ' queue-from-attribute '
3837 && $ job ->value === 1234 ;
3938 });
4039 }
@@ -46,8 +45,8 @@ public function testDispatchWhereConnectionIsFromAttribute(): void
4645 FakeJobWithOnConnection::dispatch (999 );
4746
4847 Queue::assertPushed (function (FakeJobWithOnConnection $ job ) {
49- return $ job ->connection === " connection_from_attribute "
50- && !isset ($ job ->queue )
48+ return $ job ->connection === ' connection_from_attribute '
49+ && ! isset ($ job ->queue )
5150 && $ job ->value === 999 ;
5251 });
5352 }
@@ -61,8 +60,8 @@ public function testOverridingQueueAndConnectionDoesNotUseAttributeValues(): voi
6160 ->onConnection ('setViaMethodToo ' );
6261
6362 Queue::assertPushed (function (FakeJobWithOnQueueAndOnConnection $ job ) {
64- return $ job ->queue === " setViaMethod "
65- && $ job ->connection === " setViaMethodToo "
63+ return $ job ->queue === ' setViaMethod '
64+ && $ job ->connection === ' setViaMethodToo '
6665 && $ job ->value === 'abc ' ;
6766 });
6867 }
0 commit comments