diff --git a/tests/src/Panels/Tenancy/ResolveTenantTest.php b/tests/src/Panels/Tenancy/ResolveTenantTest.php index 0edf979e3b..fdc2fa35cb 100644 --- a/tests/src/Panels/Tenancy/ResolveTenantTest.php +++ b/tests/src/Panels/Tenancy/ResolveTenantTest.php @@ -58,15 +58,5 @@ it('resolves the tenant with custom path correctly from the route', function (): Filament::setCurrentPanel($panel); Filament::setTenant($team); - $routeName = 'filament.tenancy.resources.posts.index'; - $route = Route::getRoutes()->getByName($routeName); - - $request = Request::create(route($routeName, [ - 'tenant' => $team, - ])); - - $request->setRouteResolver(fn () => $route->bind($request)); - - $resolvedTenant = $panel->getTenant($team->getKey()); - expect($resolvedTenant)->toBeSameModel($team); -}); \ No newline at end of file + expect(Filament::getUrl($team))->toBe('http://localhost/tenancy/1'); +});