1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-use-notificationassertnothingsentto-to-check-that-no-notifications-were-sent-to-a-specific-usernotifiable-model.md
Samuel Štancl 876878c43a 13/2022
2022-04-02 17:18:22 +02:00

667 B

title tweet_id thread_slug author_username images created_at slug
You can use `Notification::assertNothingSentTo()` to check that no notifications were sent to a specific user/notifiable model 1509994037830332416 weekly-thread-2022-13 AshAllenDesign
https://pbs.twimg.com/media/FO8nW9TXsBExZTp.jpg
2022-04-01T20:40:07+00:00 you-can-use-notificationassertnothingsentto-to-check-that-no-notifications-were-sent-to-a-specific-usernotifiable-model

🚀 You can now use the new "assertNothingSentTo" method in your Laravel tests.

You can use this to ensure that no notifications were sent to a given notifiable model (or models)!

#laravel #php