mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat(presets): update Laravel preset to include expectation for Laravel service provider suffix
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user