2026-07-24 22:21:53 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
use Tests\TestCase;
|
|
|
|
|
|
|
|
|
|
uses(TestCase::class); // нужен booted-app: config()
|
|
|
|
|
|
|
|
|
|
it('defaults yandex_direct base_url to the sandbox host', function () {
|
|
|
|
|
expect(config('services.yandex_direct.base_url'))->toContain('api-sandbox.direct.yandex.com')
|
|
|
|
|
->and(config('services.yandex_direct.enabled'))->toBeFalse();
|
|
|
|
|
});
|
2026-07-26 23:41:48 +03:00
|
|
|
|
|
|
|
|
it('exposes cpm media defaults and keeps switch off', function () {
|
|
|
|
|
expect(config('services.yandex_direct.enabled'))->toBeFalse()
|
|
|
|
|
->and(config('services.yandex_direct.region_ids'))->toBe([225])
|
|
|
|
|
->and(config('services.yandex_direct.spend_limit_guard_multiplier'))->toBe(1.2);
|
|
|
|
|
});
|