0a450bf679
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
570 B
PHP
13 lines
570 B
PHP
<?php
|
|
|
|
use App\Services\Autopodbor\Agent\Dto\CollectedSource;
|
|
|
|
it('считает число подтверждений по списку источников', function () {
|
|
$s = new CollectedSource(
|
|
signalType: 'call', identifier: '73912920000', phoneKind: 'real', phoneType: 'city',
|
|
office: 'ул. Калинина, 185',
|
|
sources: [['label' => 'в коде сайта', 'url' => 'https://x.ru/'], ['label' => '2ГИС', 'url' => 'https://2gis.ru/1']],
|
|
);
|
|
expect($s->confirmations())->toBe(2)->and($s->phoneKind)->toBe('real');
|
|
});
|