arch test example
How this pest arch test should be changed to work correctly?
<?php
use Filament\Resources\Resource;
arch('resources have UI attributes')
->expect('App\Filament\Resources*')
->classes()
->toExtend(Resource::class)
->toHaveProperties(
[
'modelLabel',
'navigationGroup',
'navigationIcon',
'pluralModelLabel',
'recordTitleAttribute'
]
)
->not->toHaveProperty('label’);
0 Replies