create(); [$user, $tenant] = createUserWithTenant($tenant, role: 'owner'); setAdminPanelContext($tenant); $policies = Policy::factory()->count(2)->create(['managed_environment_id' => $tenant->id]); Livewire::actingAs($user) ->test(PolicyResource\Pages\ListPolicies::class) ->callTableBulkAction('bulk_sync', $policies) ->assertHasNoTableBulkActionErrors(); });