From cd80f67c92aa132349e39d5548955f559293cfa1 Mon Sep 17 00:00:00 2001 From: Wouter van Marrum Date: Tue, 19 Aug 2025 10:16:52 +0200 Subject: [PATCH] feat: Added test to validate url. --- tests/src/Panels/Tenancy/ResolveTenantTest.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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'); +});