Skip to content

Conversation

@gdebrauwer
Copy link
Contributor

A follow-up to #58606.

This PR makes it possible to provide an array to the assertBatched method (similar to the assertChained method). This will then trigger the use of the hasJobs method on the PendingBatchFake class that I introduced in #58606.

Bus::assertBatched([
    new FooJob(),
    new BarJob(),
    new BazJob(),
]);

@gdebrauwer gdebrauwer changed the title [13.x] Bus::assertBatched() with array [12.x] Bus::assertBatched() with array Feb 6, 2026
@taylorotwell taylorotwell merged commit 45c2e27 into laravel:12.x Feb 6, 2026
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants