41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Tests\Architecture;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class Phase10ReleaseReadinessArchitectureTest extends TestCase
|
|
{
|
|
public function test_release_docs_exist(): void
|
|
{
|
|
$required = [
|
|
'docs/release/feature-flag-rollout-map.md',
|
|
'docs/release/migration-validation.md',
|
|
'docs/release/shadow-comparison-plan.md',
|
|
'docs/release/rollback-playbooks.md',
|
|
'docs/release/uat-scenarios.md',
|
|
'docs/release/support-playbooks.md',
|
|
'docs/release/production-readiness-review.md',
|
|
];
|
|
|
|
foreach ($required as $path) {
|
|
$this->assertFileExists(base_path($path), $path);
|
|
}
|
|
}
|
|
|
|
public function test_release_commands_exist(): void
|
|
{
|
|
$required = [
|
|
'app/Console/Commands/ReleaseFeatureFlagsCommand.php',
|
|
'app/Console/Commands/ReleaseMigrationValidateCommand.php',
|
|
'app/Console/Commands/ReleaseShadowCompareCommand.php',
|
|
'app/Console/Commands/ReleaseReadinessGateCommand.php',
|
|
'app/Console/Commands/LegacyUnsafeRouteAuditCommand.php',
|
|
];
|
|
|
|
foreach ($required as $path) {
|
|
$this->assertFileExists(base_path($path), $path);
|
|
}
|
|
}
|
|
}
|