Files
breadcrumb-the-shire/tests/Architecture/StatusTaxonomyUiContractTest.php

21 lines
837 B
PHP
Raw Normal View History

2026-03-19 19:11:03 +01:00
<?php
namespace MintyPHP\Tests\Architecture;
use PHPUnit\Framework\TestCase;
final class StatusTaxonomyUiContractTest extends TestCase
{
use ProjectFileAssertionSupport;
public function testImportAuditIndexTemplateDoesNotUseLegacyStatusMapper(): void
{
$content = $this->readProjectFile('pages/admin/import-audit/index(default).phtml');
$moduleContent = $this->readProjectFile('web/js/pages/admin-import-audit-index.js');
$this->assertStringNotContainsString('const statusLabel = (value) =>', $moduleContent);
$this->assertStringNotContainsString("if (key === 'running')", $moduleContent);
$this->assertStringContainsString('cell.label || \'-\'', $moduleContent);
$this->assertStringContainsString("assetVersion('js/pages/admin-import-audit-index.js')", $content);
}
}