create(); [$user] = createUserWithTenant($tenant, role: 'readonly'); $this->actingAs($user) ->get("/admin/managed-tenants/{$tenant->id}/edit") ->assertForbidden(); }); it('returns 404 for a non-member attempting to access the managed-tenant list', function (): void { $tenant = Tenant::factory()->create(); $user = User::factory()->create(); $this->actingAs($user) ->get('/admin/managed-tenants') ->assertNotFound(); });