filament-tests icon indicating copy to clipboard operation
filament-tests copied to clipboard

Resource namespace hardcoded in the stub

Open rossbearman opened this issue 1 month ago • 0 comments

Currently the resource and page namespaces are hardcoded in the stub, so a test for a resource in a non-standard directory, or cluster, will not import the correct classes.

Filament::getResources() returns the FQDN to the resource, which should be stored and used to import the correct resource. Pages\ListForms, Pages\CreateForm and Pages\EditForm can be appended to this to probably get the correct page classes.

rossbearman avatar May 08 '24 16:05 rossbearman