mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
feat(presets): add expectation for Laravel middleware handle method
This commit is contained in:
@ -25,6 +25,9 @@ final class Laravel extends AbstractPreset
|
|||||||
$this->expectations[] = expect('App\Http\Controllers')
|
$this->expectations[] = expect('App\Http\Controllers')
|
||||||
->toHaveSuffix('Controller');
|
->toHaveSuffix('Controller');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App\Http\Middleware')
|
||||||
|
->toHaveMethod('handle');
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Models')
|
$this->expectations[] = expect('App\Models')
|
||||||
->not->toHaveSuffix('Model');
|
->not->toHaveSuffix('Model');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user