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 Filament 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
No description
0 Replies
No replies yetBe the first to reply to this messageJoin