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

This commit is contained in:
Punyapal Shah
2024-06-10 21:49:03 +05:30
parent 40539ca720
commit 1688888f15

View File

@ -53,6 +53,12 @@ final class Laravel extends AbstractPreset
->toHaveMethod('handle')
->toHaveConstructor();
$this->expectations[] = expect('App\Listeners')
->toHaveMethod('handle');
$this->expectations[] = expect('App\Events')
->toHaveConstructor();
$this->expectations[] = expect('App\Notifications')
->toHaveConstructor()
->toExtend('Illuminate\Notifications\Notification');