From 7144d6dfbdde2ef12a606cbe6a7da2cf8e51b961 Mon Sep 17 00:00:00 2001 From: Punyapal Shah Date: Mon, 10 Jun 2024 21:47:12 +0530 Subject: [PATCH] feat(presets): add expectation for Laravel notification class --- src/ArchPresets/Laravel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index 403ea4ae..132600fe 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -52,5 +52,9 @@ final class Laravel extends AbstractPreset $this->expectations[] = expect('App\Jobs') ->toHaveMethod('handle') ->toHaveConstructor(); + + $this->expectations[] = expect('App\Notifications') + ->toHaveConstructor() + ->toExtend('Illuminate\Notifications\Notification'); } }