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 df6349a commit 37f036bCopy full SHA for 37f036b
tests/Integration/Queue/JobDispatchingTest.php
@@ -144,12 +144,14 @@ public function testDispatchDeferDelaysDispatchingUntilDeferredCallbacksAreRun()
144
{
145
Job::dispatchDefer('test');
146
147
+ $this->assertSame(1, $this->app[DeferredCallbackCollection::class]->count());
148
$this->assertFalse(Job::$ran);
149
+
150
$this->runQueueWorkerCommand(['--stop-when-empty' => true]);
151
152
- $this->app->get(DeferredCallbackCollection::class)->invoke();
- $this->runQueueWorkerCommand(['--stop-when-empty' => true]);
153
+ $this->app[DeferredCallbackCollection::class]->invoke();
154
+ $this->runQueueWorkerCommand(['--once' => true]);
155
$this->assertTrue(Job::$ran);
156
}
157
0 commit comments