We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assertBatchCount()
assertNothingBatched()
1 parent 1536cbf commit ed425deCopy full SHA for ed425de
queues.md
@@ -2129,6 +2129,14 @@ The `Bus` facade's `assertBatched` method may be used to assert that a [batch of
2129
$batch->jobs->count() === 10;
2130
});
2131
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
2140
<a name="testing-job-batch-interaction"></a>
2141
#### Testing Job / Batch Interaction
2142
0 commit comments