diff --git a/queues.md b/queues.md index debaa41b747..566c5451600 100644 --- a/queues.md +++ b/queues.md @@ -2129,6 +2129,14 @@ The `Bus` facade's `assertBatched` method may be used to assert that a [batch of $batch->jobs->count() === 10; }); +You may use the `assertBatchCount` method to assert that a given number of batches were dispatched: + + Bus::assertBatchCount(3); + +You may use `assertNothingBatched` to assert that no batches were dispatched: + + Bus::assertNothingBatched(); + #### Testing Job / Batch Interaction