feat(presets): update Laravel preset to include expectation for Laravel service provider suffix

This commit is contained in:
Punyapal Shah
2024-06-10 21:48:25 +05:30
parent 7144d6dfbd
commit 40539ca720

View File

@ -56,5 +56,10 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Notifications')
->toHaveConstructor()
->toExtend('Illuminate\Notifications\Notification');
$this->expectations[] = expect('App\Providers')
->toHaveSuffix('ServiceProvider')
->toExtend('Illuminate\Support\ServiceProvider')
->not->toBeUsed();
}
}