create([ 'tenant_id' => $tenant->getKey(), 'type' => 'policy.sync', 'status' => 'queued', 'outcome' => 'pending', 'initiator_name' => 'System', ]); $this->actingAs($user); Bus::fake(); assertNoOutboundHttp(function () use ($tenant) { $this->get(OperationRunResource::getUrl('index', tenant: $tenant)) ->assertOk(); }); Bus::assertNothingDispatched(); }); it('renders Monitoring → Operations detail DB-only (no outbound HTTP, no background work)', function () { [$user, $tenant] = createUserWithTenant(role: 'owner'); $run = OperationRun::factory()->create([ 'tenant_id' => $tenant->getKey(), 'type' => 'policy.sync', 'status' => 'queued', 'outcome' => 'pending', 'initiator_name' => 'System', ]); $this->actingAs($user); Bus::fake(); assertNoOutboundHttp(function () use ($tenant, $run) { $this->get(OperationRunResource::getUrl('view', ['record' => $run], tenant: $tenant)) ->assertOk() ->assertSee('Policy sync'); }); Bus::assertNothingDispatched(); });