Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Improve Queue::assertNothingPushed() error message #51814

Merged
merged 2 commits into from
Jun 17, 2024
Merged

[11.x] Improve Queue::assertNothingPushed() error message #51814

merged 2 commits into from
Jun 17, 2024

Conversation

SjorsO
Copy link
Contributor

@SjorsO SjorsO commented Jun 17, 2024

Queue::assertNothingPushed() currently doesn't show a useful message when the assertion fails:

image

This PR makes Queue::assertNothingPushed() show the names of the jobs that were unexpectedly pushed:

image

@taylorotwell taylorotwell merged commit 534f0d3 into laravel:11.x Jun 17, 2024
28 checks passed
andrewminion-luminfire pushed a commit to macbookandrew/framework that referenced this pull request Jun 19, 2024
taylorotwell pushed a commit that referenced this pull request Jun 20, 2024
…spatched(), Mail::assertNothingSent(), Notification::assertNothingSent() error messages (#51846)

* add class names to bus, mail, and notification assertNothing* methods

Similar to #51814 for jobs

* improve batched jobs

* fix line endings for Windows

* add similar handling for events

* standardize output

* add back auto-deleted type docs

* fix test
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