mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat(presets): add expectation for Laravel command handle method
This commit is contained in:
@ -32,7 +32,10 @@ final class Laravel extends AbstractPreset
|
||||
->toHaveSuffix('Request');
|
||||
|
||||
$this->expectations[] = expect('App\Console\Commands')
|
||||
->toHaveSuffix('Command');
|
||||
->toHaveSuffix('Command')
|
||||
->toExtend('Illuminate\Console\Command')
|
||||
->toHaveMethod('handle')
|
||||
->toImplementNothing();
|
||||
|
||||
$this->expectations[] = expect('App\Exceptions')
|
||||
->toImplement('Throwable');
|
||||
|
||||
Reference in New Issue
Block a user