mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
15 lines
No EOL
667 B
Markdown
15 lines
No EOL
667 B
Markdown
---
|
|
title: 'You can use `Notification::assertNothingSentTo()` to check that no notifications were sent to a specific user/notifiable model'
|
|
tweet_id: '1509994037830332416'
|
|
thread_slug: weekly-thread-2022-13
|
|
author_username: AshAllenDesign
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FO8nW9TXsBExZTp.jpg'
|
|
created_at: 2022-04-01T20:40:07+00:00
|
|
slug: 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 |