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

Method testCanGetJob

php/tests/QueueTest.php:98–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 public function testCanGetJob(): void
99 {
100 $job = $this->queue->add('test-job', ['foo' => 'bar']);
101
102 $retrieved = $this->queue->getJob($job->id);
103
104 $this->assertNotNull($retrieved);
105 $this->assertEquals($job->id, $retrieved->id);
106 $this->assertEquals($job->name, $retrieved->name);
107 $this->assertEquals($job->data, $retrieved->data);
108 }
109
110 public function testGetJobReturnsNullForNonexistent(): void
111 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
getJobMethod · 0.45

Tested by

no test coverage detected