()
| 115 | } |
| 116 | |
| 117 | public function testCanGetJobCounts(): void |
| 118 | { |
| 119 | // Add some jobs |
| 120 | $this->queue->add('job-1', ['data' => 1]); |
| 121 | $this->queue->add('job-2', ['data' => 2]); |
| 122 | $this->queue->add('job-3', ['data' => 3], ['delay' => 60000]); |
| 123 | |
| 124 | $counts = $this->queue->getJobCounts(); |
| 125 | |
| 126 | $this->assertArrayHasKey('waiting', $counts); |
| 127 | $this->assertArrayHasKey('delayed', $counts); |
| 128 | $this->assertGreaterThanOrEqual(2, $counts['waiting']); |
| 129 | $this->assertGreaterThanOrEqual(1, $counts['delayed']); |
| 130 | } |
| 131 | |
| 132 | public function testCanGetJobCountByTypes(): void |
| 133 | { |
nothing calls this directly
no test coverage detected