f8d89e81d1
Reverts 7c5ca7f6 production-migration edits (load_initial_schema withinTransaction=false + try/catch, idempotency guards) and coupled migrate:fresh guard tests to baseline; imitation suite uses DatabaseTransactions on a pre-migrated DB so the reverted migrate:fresh resilience is not needed for Phase 1. Also drops the orphaned ensureMonth webhook_log test (webhook_log removed from PARTITIONED_TABLES in 2026_05_24_140000_drop_legacy_webhook_artefacts).
16 lines
583 B
PHP
16 lines
583 B
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
use App\Services\MonthlyPartitionManager;
|
||
|
||
// Unit test: verifies PARTITIONED_TABLES constant only — no DB.
|
||
// Added for TDD: project_routing_snapshots (snapshot_date key, Этап 2, 27.05.2026).
|
||
|
||
test('PARTITIONED_TABLES содержит project_routing_snapshots с ключом snapshot_date', function (): void {
|
||
expect(MonthlyPartitionManager::PARTITIONED_TABLES)
|
||
->toHaveKey('project_routing_snapshots')
|
||
->and(MonthlyPartitionManager::PARTITIONED_TABLES['project_routing_snapshots'])
|
||
->toBe('snapshot_date');
|
||
});
|