mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +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');
|
->toHaveSuffix('Request');
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Console\Commands')
|
$this->expectations[] = expect('App\Console\Commands')
|
||||||
->toHaveSuffix('Command');
|
->toHaveSuffix('Command')
|
||||||
|
->toExtend('Illuminate\Console\Command')
|
||||||
|
->toHaveMethod('handle')
|
||||||
|
->toImplementNothing();
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Exceptions')
|
$this->expectations[] = expect('App\Exceptions')
|
||||||
->toImplement('Throwable');
|
->toImplement('Throwable');
|
||||||
|
|||||||
Reference in New Issue
Block a user