2
2
3
3
namespace Illuminate \Tests \Integration \Bus ;
4
4
5
-
6
5
use Illuminate \Bus \Queueable ;
7
6
use Illuminate \Contracts \Queue \ShouldQueue ;
8
7
use Illuminate \Foundation \Bus \Attributes \OnConnection ;
@@ -20,8 +19,8 @@ public function testDispatchWhereQueueAndConnectionAreFromAttributes(): void
20
19
FakeJobWithOnQueueAndOnConnection::dispatch (123 );
21
20
22
21
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 '
25
24
&& $ job ->value === 123 ;
26
25
});
27
26
}
@@ -30,11 +29,11 @@ public function testDispatchWhereQueueIsFromAttribute(): void
30
29
{
31
30
Queue::fake ();
32
31
33
- FakeJobWithOnQueueFromAttribute::dispatch (1234 )->onConnection (" not-from-attribute " );
32
+ FakeJobWithOnQueueFromAttribute::dispatch (1234 )->onConnection (' not-from-attribute ' );
34
33
35
34
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 '
38
37
&& $ job ->value === 1234 ;
39
38
});
40
39
}
@@ -46,8 +45,8 @@ public function testDispatchWhereConnectionIsFromAttribute(): void
46
45
FakeJobWithOnConnection::dispatch (999 );
47
46
48
47
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 )
51
50
&& $ job ->value === 999 ;
52
51
});
53
52
}
@@ -61,8 +60,8 @@ public function testOverridingQueueAndConnectionDoesNotUseAttributeValues(): voi
61
60
->onConnection ('setViaMethodToo ' );
62
61
63
62
Queue::assertPushed (function (FakeJobWithOnQueueAndOnConnection $ job ) {
64
- return $ job ->queue === " setViaMethod "
65
- && $ job ->connection === " setViaMethodToo "
63
+ return $ job ->queue === ' setViaMethod '
64
+ && $ job ->connection === ' setViaMethodToo '
66
65
&& $ job ->value === 'abc ' ;
67
66
});
68
67
}
0 commit comments