Setup Filament test for Laravel app
Hi guys,
I'm currently writing tests for the panel in my Laravel app.
When I run tests with call method in
I'm currently writing tests for the panel in my Laravel app.
When I run tests with call method in
FilamentFilament facade, it says: FAILED Tests\Feature\Panel\Auth\LoginTest > it can render page Error
Call to a member function getLoginUrl() on null
at vendor/filament/filament/src/FilamentManager.php:180
176▕ * @param array<mixed> $parameters
177▕ */
178▕ public function getLoginUrl(array $parameters = []): ?string
179▕ {
➜ 180▕ return $this->getCurrentPanel()->getLoginUrl($parameters);
181▕ }
182▕
183▕ /**
184▕ * @param array<mixed> $parameters
+2 vendor frames
3 tests/Feature/Panel/Auth/LoginTest.php:6 FAILED Tests\Feature\Panel\Auth\LoginTest > it can render page Error
Call to a member function getLoginUrl() on null
at vendor/filament/filament/src/FilamentManager.php:180
176▕ * @param array<mixed> $parameters
177▕ */
178▕ public function getLoginUrl(array $parameters = []): ?string
179▕ {
➜ 180▕ return $this->getCurrentPanel()->getLoginUrl($parameters);
181▕ }
182▕
183▕ /**
184▕ * @param array<mixed> $parameters
+2 vendor frames
3 tests/Feature/Panel/Auth/LoginTest.php:6