We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2316dc commit c7218d0Copy full SHA for c7218d0
tests/Integration/Queue/JobDispatchingTest.php
@@ -142,12 +142,14 @@ public function testUniqueJobLockIsReleasedForJobDispatchedAfterResponse()
142
143
public function testDispatchDeferDelaysDispatchingUntilDeferredCallbacksAreRun()
144
{
145
- $this->assertFalse(Job::$ran);
146
-
147
Job::dispatchDefer('test');
148
149
$this->assertFalse(Job::$ran);
150
- $this->app[DeferredCallbackCollection::class]->invoke();
+ $this->runQueueWorkerCommand(['--stop-when-empty' => true]);
+ $this->assertFalse(Job::$ran);
+
151
+ $this->app->get(DeferredCallbackCollection::class)->invoke();
152
153
$this->assertTrue(Job::$ran);
154
}
155
0 commit comments