From 3ad788dddba74ac1bca623ccaea8d362b817016b Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Mon, 10 Jun 2024 22:38:40 +0100 Subject: [PATCH] feat(presets): adjusts laravel preset --- src/ArchPresets/Laravel.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index 59274f3f..c85a540c 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -16,9 +16,6 @@ final class Laravel extends AbstractPreset { $this->expectations[] = expect([ 'env', - ])->not->toBeUsed(); - - $this->expectations[] = expect([ 'exit', ])->not->toBeUsed(); @@ -39,28 +36,21 @@ final class Laravel extends AbstractPreset $this->expectations[] = expect('App\Console\Commands') ->toHaveSuffix('Command') ->toExtend('Illuminate\Console\Command') - ->toHaveMethod('handle') - ->toImplementNothing(); + ->toHaveMethod('handle'); $this->expectations[] = expect('App\Exceptions') ->toImplement('Throwable'); $this->expectations[] = expect('App\Mail') - ->toHaveConstructor() ->toExtend('Illuminate\Mail\Mailable'); $this->expectations[] = expect('App\Jobs') - ->toHaveMethod('handle') - ->toHaveConstructor(); + ->toHaveMethod('handle'); $this->expectations[] = expect('App\Listeners') ->toHaveMethod('handle'); - $this->expectations[] = expect('App\Events') - ->toHaveConstructor(); - $this->expectations[] = expect('App\Notifications') - ->toHaveConstructor() ->toExtend('Illuminate\Notifications\Notification'); $this->expectations[] = expect('App\Providers')