We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a9de7 commit 31f3733Copy full SHA for 31f3733
tests/Integration/Bus/BusPendingDispatchWithAttributesTest.php
@@ -91,6 +91,21 @@ public function testWorksWithDispatchFunction(): void
91
&& $job->value === 'laravel'
92
);
93
}
94
+
95
+ public function testIgnoresAttributesWhenCallingOnQueueAndOnConnection(): void
96
+ {
97
+ Queue::fake();
98
99
+ FakeJobWithAttributesUsingEnums::dispatch(76543)
100
+ ->onQueue('called-onQueue')
101
+ ->onConnection('called-onConnection');
102
103
+ Queue::assertPushed(
104
+ fn (FakeJobWithAttributesUsingEnums $job) => $job->queue === 'called-onQueue'
105
+ && $job->connection == 'called-onConnection'
106
+ && $job->value === 76543
107
+ );
108
+ }
109
110
111
#[OnQueue('queue-from-attribute')]
0 commit comments