mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +01:00
w
This commit is contained in:
@ -16,20 +16,6 @@ final class Laravel extends AbstractPreset
|
|||||||
*/
|
*/
|
||||||
public function execute(): void
|
public function execute(): void
|
||||||
{
|
{
|
||||||
$this->expectations[] = expect('App')
|
|
||||||
->not->toHaveSuffix('Controller')
|
|
||||||
->ignoring('App\Http\Controllers');
|
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Http\Controllers')
|
|
||||||
->classes()
|
|
||||||
->toHaveSuffix('Controller');
|
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Http')
|
|
||||||
->toOnlyBeUsedIn('App\Http');
|
|
||||||
|
|
||||||
$this->expectations[] = expect('App\Http\Controllers')
|
|
||||||
->not->toHavePublicMethodsBesides(['__construct', '__invoke', 'index', 'show', 'create', 'store', 'edit', 'update', 'destroy']);
|
|
||||||
|
|
||||||
$this->expectations[] = expect('App')
|
$this->expectations[] = expect('App')
|
||||||
->not->toBeEnums()
|
->not->toBeEnums()
|
||||||
->ignoring('App\Enums');
|
->ignoring('App\Enums');
|
||||||
@ -138,6 +124,20 @@ final class Laravel extends AbstractPreset
|
|||||||
->not->toHaveSuffix('ServiceProvider')
|
->not->toHaveSuffix('ServiceProvider')
|
||||||
->ignoring('App\Providers');
|
->ignoring('App\Providers');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App')
|
||||||
|
->not->toHaveSuffix('Controller')
|
||||||
|
->ignoring('App\Http\Controllers');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App\Http\Controllers')
|
||||||
|
->classes()
|
||||||
|
->toHaveSuffix('Controller');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App\Http')
|
||||||
|
->toOnlyBeUsedIn('App\Http');
|
||||||
|
|
||||||
|
$this->expectations[] = expect('App\Http\Controllers')
|
||||||
|
->not->toHavePublicMethodsBesides(['__construct', '__invoke', 'index', 'show', 'create', 'store', 'edit', 'update', 'destroy']);
|
||||||
|
|
||||||
$this->expectations[] = expect([
|
$this->expectations[] = expect([
|
||||||
'dd',
|
'dd',
|
||||||
'ddd',
|
'ddd',
|
||||||
|
|||||||
Reference in New Issue
Block a user