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

Method testCanAddPrioritizedJob

php/tests/QueueTest.php:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 public function testCanAddPrioritizedJob(): void
88 {
89 $job = $this->queue->add('priority-job', ['foo' => 'bar'], [
90 'priority' => 1,
91 ]);
92
93 $this->assertInstanceOf(Job::class, $job);
94 $state = $this->queue->getJobState($job->id);
95 $this->assertContains($state, ['waiting', 'prioritized']);
96 }
97
98 public function testCanGetJob(): void
99 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
getJobStateMethod · 0.45

Tested by

no test coverage detected