Skip to content

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

Merged
taylorotwell merged 2 commits intolaravel:9.xfrom
chrysanthos:patch-1
May 12, 2022
Merged

[9.x] Add AssertCount() in NotificationFake#42366
taylorotwell merged 2 commits intolaravel:9.xfrom
chrysanthos:patch-1

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