mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
test: improve ArchTest for models
- remove toOnlyUse() from model ArchTest as it is too strict in some cases - ignore scopes as they do not have to extend Model::class
This commit is contained in:
parent
285c6dd10a
commit
f8a02e1605
1 changed files with 1 additions and 1 deletions
|
|
@ -192,8 +192,8 @@ arch('Models')
|
|||
->expect('App\Models')
|
||||
->toBeClasses()
|
||||
->toExtend(\Illuminate\Database\Eloquent\Model::class)
|
||||
->ignoring('App\Models\Scopes')
|
||||
->not->toUseTrait(\Illuminate\Database\Eloquent\SoftDeletes::class)
|
||||
->toOnlyUse('Illuminate\Database')
|
||||
->toHaveLineCountLessThan(250)
|
||||
->not->toHaveSuffix('Model');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue