Files
portal/app/tests/Feature/Autopodbor/AutopodborSourcesSchemaTest.php
T

14 lines
659 B
PHP
Raw Normal View History

<?php
use Illuminate\Support\Facades\DB;
it('создаёт autopodbor_sources', function () {
expect(DB::getSchemaBuilder()->hasTable('autopodbor_sources'))->toBeTrue();
expect(DB::getSchemaBuilder()->hasColumns('autopodbor_sources', [
'id', 'tenant_id', 'competitor_id', 'study_run_id', 'signal_type', 'identifier',
'phone_kind', 'provenance_url', 'provenance_label', 'dedup_key', 'created_project_id', 'created_at',
// §14: богатый провенанс — список «где нашли», офис, число подтверждений
'where_found', 'office', 'confirmations',
]))->toBeTrue();
});