create(); AdWallet::create(['tenant_id' => $tenant->id, 'balance_rub' => '100.00', 'frozen_rub' => '2500.00']); $gate = app(AdWalletGate::class); expect($gate->isSolvent($tenant->id))->toBeFalse(); }); it('dispatches AdvertisingStopped when stopping all advertising', function () { Event::fake(); app(AdStopAllService::class)->stopAll(123); Event::assertDispatched(AdvertisingStopped::class, fn ($e) => $e->tenantId === 123); });