Files
portal/app/tests/Unit/Advertising/YandexDirectConfigTest.php
T

19 lines
657 B
PHP
Raw Normal View History

<?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();
});
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);
});