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

Method testCanAddDelayedJob

php/tests/QueueTest.php:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 public function testCanAddDelayedJob(): void
77 {
78 $job = $this->queue->add('delayed-job', ['foo' => 'bar'], [
79 'delay' => 60000, // 60 seconds
80 ]);
81
82 $this->assertInstanceOf(Job::class, $job);
83 $state = $this->queue->getJobState($job->id);
84 $this->assertEquals('delayed', $state);
85 }
86
87 public function testCanAddPrioritizedJob(): void
88 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
getJobStateMethod · 0.45

Tested by

no test coverage detected