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

Method testCanGetJobCountByTypes

php/tests/QueueTest.php:132–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 public function testCanGetJobCountByTypes(): void
133 {
134 $this->queue->add('job-1', ['data' => 1]);
135 $this->queue->add('job-2', ['data' => 2]);
136
137 $count = $this->queue->getJobCountByTypes('waiting');
138
139 $this->assertGreaterThanOrEqual(2, $count);
140 }
141
142 public function testCanPauseAndResumeQueue(): void
143 {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
getJobCountByTypesMethod · 0.45

Tested by

no test coverage detected