mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +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')
|
$this->expectations[] = expect('App\Notifications')
|
||||||
->toHaveConstructor()
|
->toHaveConstructor()
|
||||||
->toExtend('Illuminate\Notifications\Notification');
|
->toExtend('Illuminate\Notifications\Notification');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App\Providers')
|
||||||
|
->toHaveSuffix('ServiceProvider')
|
||||||
|
->toExtend('Illuminate\Support\ServiceProvider')
|
||||||
|
->not->toBeUsed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user