feat: pr and issue

This commit is contained in:
Nuno Maduro
2024-07-04 00:53:58 +01:00
parent 09ca7a1fd5
commit ee32f25485
26 changed files with 423 additions and 53 deletions

View File

@ -50,7 +50,7 @@ final class Laravel extends AbstractPreset
->classes()
->toHaveMethod('handle');
$this->expectations[] = expect('App\Models')
$this->expectations[] = expect('App\Models') // @phpstan-ignore-line
->classes()
->toExtend('Illuminate\Database\Eloquent\Model')
->not->toHaveSuffix('Model');
@ -62,7 +62,7 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Http\Requests')
->classes()
->toHaveSuffix('Request')
->toExtend('Illuminate\Foundation\Http\FormRequest') // @phpstan-ignore-line
->toExtend('Illuminate\Foundation\Http\FormRequest')
->toHaveMethod('rules');
$this->expectations[] = expect('App')
@ -72,7 +72,7 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Console\Commands')
->classes()
->toHaveSuffix('Command')
->toExtend('Illuminate\Console\Command') // @phpstan-ignore-line
->toExtend('Illuminate\Console\Command')
->toHaveMethod('handle');
$this->expectations[] = expect('App')
@ -81,7 +81,7 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Mail')
->classes()
->toExtend('Illuminate\Mail\Mailable'); // @phpstan-ignore-line
->toExtend('Illuminate\Mail\Mailable');
$this->expectations[] = expect('App')
->not->toExtend('Illuminate\Mail\Mailable')
@ -101,7 +101,7 @@ final class Laravel extends AbstractPreset
->toHaveMethod('handle');
$this->expectations[] = expect('App\Notifications')
->toExtend('Illuminate\Notifications\Notification'); // @phpstan-ignore-line
->toExtend('Illuminate\Notifications\Notification');
$this->expectations[] = expect('App')
->not->toExtend('Illuminate\Notifications\Notification')
@ -109,10 +109,10 @@ final class Laravel extends AbstractPreset
$this->expectations[] = expect('App\Providers') // @phpstan-ignore-line
->toHaveSuffix('ServiceProvider')
->toExtend('Illuminate\Support\ServiceProvider') // @phpstan-ignore-line
->toExtend('Illuminate\Support\ServiceProvider')
->not->toBeUsed();
$this->expectations[] = expect('App')
$this->expectations[] = expect('App') // @phpstan-ignore-line
->not->toExtend('Illuminate\Support\ServiceProvider')
->not->toHaveSuffix('ServiceProvider')
->ignoring('App\Providers');