From 1688888f1571f10c35ba33b0c73f5601b2f21dea Mon Sep 17 00:00:00 2001 From: Punyapal Shah Date: Mon, 10 Jun 2024 21:49:03 +0530 Subject: [PATCH] feat(presets): update Laravel preset to include expectation for Laravel service provider suffix --- src/ArchPresets/Laravel.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index 8be49d1d..59274f3f 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -53,6 +53,12 @@ final class Laravel extends AbstractPreset ->toHaveMethod('handle') ->toHaveConstructor(); + $this->expectations[] = expect('App\Listeners') + ->toHaveMethod('handle'); + + $this->expectations[] = expect('App\Events') + ->toHaveConstructor(); + $this->expectations[] = expect('App\Notifications') ->toHaveConstructor() ->toExtend('Illuminate\Notifications\Notification');