create([ 'tenant_id' => $tenant->getKey(), 'type' => 'policy.sync', 'status' => 'queued', 'outcome' => 'pending', 'initiator_name' => 'System', ]); $this->actingAs($user); Bus::fake(); Queue::fake(); Filament::setTenant(null, true); assertNoOutboundHttp(function () use ($tenant) { $this->withSession([WorkspaceContext::SESSION_KEY => (int) $tenant->workspace_id]) ->get('/admin/operations') ->assertOk(); }); Bus::assertNothingDispatched(); Queue::assertNothingPushed(); });