24 lines
698 B
PHP
24 lines
698 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
use App\Models\SalesAdAudiencePlatform;
|
||
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||
|
|
use Tests\Concerns\SharesSupplierPdo;
|
||
|
|
|
||
|
|
uses(DatabaseTransactions::class, SharesSupplierPdo::class);
|
||
|
|
|
||
|
|
it('площадка отдаёт 11 сроков одним списком', function () {
|
||
|
|
$p = SalesAdAudiencePlatform::forCode('yandex');
|
||
|
|
|
||
|
|
expect($p->durations())
|
||
|
|
->toHaveKey('warmup_days')
|
||
|
|
->toHaveKey('registered_days')
|
||
|
|
->and($p->durations()['in_work_days'])->toBe(14);
|
||
|
|
});
|
||
|
|
|
||
|
|
it('days доступен и кастуется в int', function () {
|
||
|
|
$p = SalesAdAudiencePlatform::forCode('vk');
|
||
|
|
expect($p->days)->toBeInt();
|
||
|
|
});
|