Files
portal/app/tests/Unit/Services/MonthlyPartitionManagerTest.php
T
Дмитрий f8d89e81d1 revert(imitation): drop out-of-scope migration edits from 7c5ca7f6 + dead webhook_log test
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).
2026-06-03 18:58:13 +03:00

16 lines
583 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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');
});