mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
test: add strict preset manually to remove toHaveProtectedMethods test
This commit is contained in:
parent
dd3f6012bf
commit
fbc6d22fef
1 changed files with 5 additions and 3 deletions
|
|
@ -8,12 +8,14 @@ use Throwable;
|
|||
|
||||
arch()->preset()->php();
|
||||
arch()->preset()->security();
|
||||
arch()->preset()->strict();
|
||||
|
||||
arch('App')
|
||||
->expect('App')
|
||||
->toUseStrictTypes()
|
||||
->toUseStrictEquality()
|
||||
->not->toBeEnums()
|
||||
->ignoring('App\Enums')
|
||||
->classes()->not->toBeAbstract()
|
||||
->classes()->toBeFinal()
|
||||
->not->toExtend(\Illuminate\Database\Eloquent\Model::class)
|
||||
->ignoring('App\Models')
|
||||
->not->toExtend(\Illuminate\Foundation\Http\FormRequest::class)
|
||||
|
|
@ -218,5 +220,5 @@ arch('Providers')
|
|||
->toHaveSuffix('ServiceProvider');
|
||||
|
||||
arch('Functions')
|
||||
->expect(['dd', 'ddd', 'dump', 'env', 'exit', 'ray'])
|
||||
->expect(['dd', 'ddd', 'dump', 'env', 'exit', 'ray', 'sleep', 'usleep'])
|
||||
->not->toBeUsed();
|
||||
|
|
|
|||
Loading…
Reference in a new issue