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

[8.x] Add assertions for notifications sent on-demand #39203

Conversation

roberto-aguilar
Copy link
Contributor

Given that on-demand notifications are always sent to Illuminate\Notifications\AnonymousNotifiable, this new set assertions remove the need to declare the assertSentTo(new AnonymousNotifiable) every single time, but most importantly, it better communicates the strategy used to send those notifications.

@GrahamCampbell GrahamCampbell changed the title Add assertions for notifications sent on-demand [8.x] Add assertions for notifications sent on-demand Oct 14, 2021
@taylorotwell taylorotwell merged commit 068c752 into laravel:8.x Oct 15, 2021
@roberto-aguilar roberto-aguilar deleted the feature/anonymous-notification-assertions branch October 15, 2021 15:05
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