Closed
Description
- Laravel Version: 8.61.0
- PHP Version: 8.0.3
- Database Driver & Version: mysql 5.7
Description:
It looks like the PR:
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 onshouldSend
. - Test fails because notification is sent regardless of shouldSend
Metadata
Metadata
Assignees
Labels
No labels