TenantAtlas/apps/platform/tests/Feature/Filament/AdminSmokeTest.php
2026-04-08 09:33:16 +02:00

13 lines
392 B
PHP

<?php
uses(Illuminate\Foundation\Testing\RefreshDatabase::class);
test('authenticated tenant member can load a tenant-scoped Filament page', function () {
[$user, $tenant] = createUserWithTenant();
$this->actingAs($user)
->get(route('filament.admin.resources.tenants.index', filamentTenantRouteParams($tenant)))
->assertOk()
->assertSee($tenant->name);
});