From 508e42a2fffa8a676732f8e8a488420cdbc4ffd9 Mon Sep 17 00:00:00 2001 From: Punyapal Shah Date: Mon, 10 Jun 2024 21:45:17 +0530 Subject: [PATCH] feat(presets): update Laravel preset to include expectation for Laravel request suffix --- src/ArchPresets/Laravel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ArchPresets/Laravel.php b/src/ArchPresets/Laravel.php index cae3331b..ac5b18c5 100644 --- a/src/ArchPresets/Laravel.php +++ b/src/ArchPresets/Laravel.php @@ -32,7 +32,9 @@ final class Laravel extends AbstractPreset ->not->toHaveSuffix('Model'); $this->expectations[] = expect('App\Http\Requests') - ->toHaveSuffix('Request'); + ->toHaveSuffix('Request') + ->toExtend('Illuminate\Foundation\Http\FormRequest') + ->toHaveMethod('rules'); $this->expectations[] = expect('App\Console\Commands') ->toHaveSuffix('Command')