diff --git a/tests/Feature/NotificationOverridesTest.php b/tests/Feature/NotificationOverridesTest.php index 7a589daa..6076d0d6 100644 --- a/tests/Feature/NotificationOverridesTest.php +++ b/tests/Feature/NotificationOverridesTest.php @@ -25,6 +25,17 @@ public function test_custom_notifications_are_sent_if_specified() Notification::assertSentOnDemand(CustomLongWaitDetectedNotification::class); } + + public function test_normal_notifications_are_sent_if_not_specified() + { + Notification::fake(); + + Horizon::routeMailNotificationsTo('taylor@laravel.com'); + + event(new LongWaitDetected('redis', 'test-queue-2', 60)); + + Notification::assertSentOnDemand(LongWaitDetectedNotification::class); + } } class CustomLongWaitDetectedNotification extends LongWaitDetectedNotification implements LongWaitDetectedNotificationContract