env('INTUNE_TENANT_ID', 'local-tenant'), 'name' => 'Tenant One', 'metadata' => [], ]); $tenant->makeCurrent(); Policy::create([ 'tenant_id' => $tenant->id, 'external_id' => 'policy-1', 'policy_type' => 'deviceConfiguration', 'display_name' => 'Policy A', 'platform' => 'windows', ]); $otherTenant = Tenant::create([ 'tenant_id' => 'tenant-2', 'name' => 'Tenant Two', 'metadata' => [], ]); Policy::create([ 'tenant_id' => $otherTenant->id, 'external_id' => 'policy-2', 'policy_type' => 'deviceConfiguration', 'display_name' => 'Policy B', 'platform' => 'windows', ]); $user = User::factory()->create(); $this->actingAs($user) ->get(route('filament.admin.resources.policies.index')) ->assertOk() ->assertSee('Policy A') ->assertDontSee('Policy B'); });