Fix collected invoice queue count expectations

This commit is contained in:
Jeppe B
2026-06-02 02:00:35 +02:00
parent a2e525fa9e
commit eb16a4e6ce
@@ -29,9 +29,10 @@ it('returns pagination metadata and strict status handling for collected-invoice
expect($content)->toContain('private function parseCollectedInvoiceQueuePagination(): array');
expect($content)->toContain('limit must be between 1 and 500');
expect($content)->toContain('offset must be at least 0');
expect($content)->toContain('private function countCollectedInvoiceQueueJobs(economic_transfer_queue $queue, array $statuses): int');
expect($content)->toContain("method_exists(\$queue, 'countJobs')");
expect($content)->toContain('private function countCollectedInvoiceQueueJobs(economic_transfer_queue $queue, array $statuses, int $created_by): int');
expect($content)->toContain("method_exists(\$queue, 'countJobsForCreatedBy')");
expect($content)->toContain("SELECT COUNT(*) AS total FROM economic_transfer_queue_jobs WHERE ");
expect($content)->toContain("'created_by = ' . \$created_by");
});
it('enforces retry constraints for collected-invoice queue jobs before retry execution', function (): void {