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

[5.5] Add new methods to QueueFake and NotificationFake #20651

Merged

Conversation

mateusjatenee
Copy link
Contributor

Hey guys — sorry for the PR spam, I imagine this is annoying, but I don't feel I should have sent them together.

This PR adds the ability to check if a notification was sent a number of times and to check no notifications were sent:

Notification::assertSentTo($user, Notification::class, 5);

Notification::assertNothingSent();

And it adds the ability to check that no jobs were pushed to the queue.

Queue::assertNothingPushed();

I didn't test NotificationFake methods (PR with automated tests #20650) but I can test them in the morning 👍

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