Skip to content

Commit 43f358a

Browse files
committed
WIP
1 parent df6349a commit 43f358a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Integration/Queue/JobDispatchingTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,13 @@ public function testDispatchDeferDelaysDispatchingUntilDeferredCallbacksAreRun()
144144
{
145145
Job::dispatchDefer('test');
146146

147+
$this->assertSame(1, $this->app[DeferredCallbackCollection::class]->count());
147148
$this->assertFalse(Job::$ran);
149+
148150
$this->runQueueWorkerCommand(['--stop-when-empty' => true]);
149151
$this->assertFalse(Job::$ran);
150152

151-
$this->app->get(DeferredCallbackCollection::class)->invoke();
153+
$this->app[DeferredCallbackCollection::class]->invoke();
152154
$this->runQueueWorkerCommand(['--stop-when-empty' => true]);
153155
$this->assertTrue(Job::$ran);
154156
}

0 commit comments

Comments
 (0)