MCPcopy Create free account
hub / github.com/taskforcesh/bullmq / testCanGetDelayedJobs

Method testCanGetDelayedJobs

php/tests/QueueTest.php:207–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 public function testCanGetDelayedJobs(): void
208 {
209 $this->queue->add('delayed-1', ['data' => 1], ['delay' => 60000]);
210 $this->queue->add('delayed-2', ['data' => 2], ['delay' => 120000]);
211
212 $delayedJobs = $this->queue->getDelayed();
213
214 $this->assertGreaterThanOrEqual(2, count($delayedJobs));
215 }
216
217 public function testCanGetPrioritizedJobs(): void
218 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
getDelayedMethod · 0.45

Tested by

no test coverage detected