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

[9.x] Add AssertCount() in NotificationFake #42366

Merged
merged 2 commits into from
May 12, 2022
Merged

[9.x] Add AssertCount() in NotificationFake #42366

merged 2 commits into from
May 12, 2022

Conversation

chrysanthos
Copy link
Contributor

This adds a Notification::assertCount(4) method on the NotificationFake class.

Main use case is to assert that X notifications were sent when sending multiple notifications of different Notification Classes.

I'm not sure if I am missing something obvious here but I couldn't find an assertion for just validating the number of notifications that were sent.

@GrahamCampbell GrahamCampbell changed the title Add AssertCount() in NotificationFake [9.x] Add AssertCount() in NotificationFake May 12, 2022
@taylorotwell taylorotwell merged commit fd7b1c9 into laravel:9.x May 12, 2022
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