Skip to content

Commit ed425de

Browse files
authored
[10.x] Add assertBatchCount(), assertNothingBatched() (#9118)
* Documents the `assertBatchCount()` method * Document the `assertNothingBatched()` method
1 parent 1536cbf commit ed425de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

queues.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,6 +2129,14 @@ The `Bus` facade's `assertBatched` method may be used to assert that a [batch of
21292129
$batch->jobs->count() === 10;
21302130
});
21312131

2132+
You may use the `assertBatchCount` method to assert that a given number of batches were dispatched:
2133+
2134+
Bus::assertBatchCount(3);
2135+
2136+
You may use `assertNothingBatched` to assert that no batches were dispatched:
2137+
2138+
Bus::assertNothingBatched();
2139+
21322140
<a name="testing-job-batch-interaction"></a>
21332141
#### Testing Job / Batch Interaction
21342142

0 commit comments

Comments
 (0)