Having issues with Test using laravel-modules and FilamentPHP
Hi all,
I am trying to run this test
to test a user registering
I am getting this error if i try the UserCreate class
and this if i use the UserClass
Anyone any ideas please?
Thanks in advance!
5 Replies
ok getting closer
I now get this
Modules\Auth\tests\Feature\RegistrationTest > can register User ViewException
Missing required parameter for [Route: filament.admin.resources.users.index] [URI: admin/users] [Missing parameter: tenant]. (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) Using the User::class but the tenant isnt created yet?
Missing required parameter for [Route: filament.admin.resources.users.index] [URI: admin/users] [Missing parameter: tenant]. (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) Using the User::class but the tenant isnt created yet?
You need to set a tenant via
Filament::setTenant()
but this is the user registration - before the tenant creation? @Dennis Koch
Good point. But it seems to load ListUsers page? Maybe a redirect?
mmm it would be the default registration page for filament so the Users class may not make sense?
ahh getting somewhere
GOT IT!! π it has to use the register class from filament π @Dennis Koch you pointed me in right direction
Thanks!