Files
laravel_school_api_old/tests/Architecture/DeprecationPolicyTest.php
T
2026-05-29 04:33:03 -04:00

19 lines
585 B
PHP

<?php declare(strict_types=1);
namespace Tests\Architecture;
use PHPUnit\Framework\TestCase;
final class DeprecationPolicyTest extends TestCase
{
public function test_deprecation_document_exists_with_required_metadata_headings(): void
{
$path = dirname(__DIR__, 2).'/docs/deprecations.md';
$this->assertFileExists($path);
$contents = file_get_contents($path) ?: '';
foreach (['replacement_route', 'sunset_date', 'owner', 'removal_ticket'] as $required) {
$this->assertStringContainsString($required, $contents);
}
}
}