CodeWithDennis / filament-tests

A package that creates PEST tests specifically tailored for your filament resources.
MIT License
48 stars 4 forks source link

Resource namespace hardcoded in the stub #255

Closed rossbearman closed 3 months ago

rossbearman commented 5 months ago

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.