- Laravel Version: 8.61.0
- PHP Version: 8.0.3
- Database Driver & Version: mysql 5.7
Description:
It looks like the PR:
#37930 (comment)
that gave us shouldSend() on Notification does not give us that behavior when checking assertions like assertNotSent.
Steps To Reproduce:
- Create a new notification
- Set
shouldSend to return false
- Create a test where that notification should send without
shouldSend and try to assertNotSent based on shouldSend.
- Test fails because notification is sent regardless of shouldSend