Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();

<a name="testing-job-batch-interaction"></a>
#### Testing Job / Batch Interaction

Expand Down