feat(presets): adjusts laravel preset

This commit is contained in:
Nuno Maduro
2024-06-10 22:38:40 +01:00
parent 2108d18be5
commit 3ad788dddb

View File

@ -16,9 +16,6 @@ final class Laravel extends AbstractPreset
{ {
$this->expectations[] = expect([ $this->expectations[] = expect([
'env', 'env',
])->not->toBeUsed();
$this->expectations[] = expect([
'exit', 'exit',
])->not->toBeUsed(); ])->not->toBeUsed();
@ -39,28 +36,21 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Console\Commands') $this->expectations[] = expect('App\Console\Commands')
->toHaveSuffix('Command') ->toHaveSuffix('Command')
->toExtend('Illuminate\Console\Command') ->toExtend('Illuminate\Console\Command')
->toHaveMethod('handle') ->toHaveMethod('handle');
->toImplementNothing();
$this->expectations[] = expect('App\Exceptions') $this->expectations[] = expect('App\Exceptions')
->toImplement('Throwable'); ->toImplement('Throwable');
$this->expectations[] = expect('App\Mail') $this->expectations[] = expect('App\Mail')
->toHaveConstructor()
->toExtend('Illuminate\Mail\Mailable'); ->toExtend('Illuminate\Mail\Mailable');
$this->expectations[] = expect('App\Jobs') $this->expectations[] = expect('App\Jobs')
->toHaveMethod('handle') ->toHaveMethod('handle');
->toHaveConstructor();
$this->expectations[] = expect('App\Listeners') $this->expectations[] = expect('App\Listeners')
->toHaveMethod('handle'); ->toHaveMethod('handle');
$this->expectations[] = expect('App\Events')
->toHaveConstructor();
$this->expectations[] = expect('App\Notifications') $this->expectations[] = expect('App\Notifications')
->toHaveConstructor()
->toExtend('Illuminate\Notifications\Notification'); ->toExtend('Illuminate\Notifications\Notification');
$this->expectations[] = expect('App\Providers') $this->expectations[] = expect('App\Providers')