forked from fa/breadcrumb-the-shire
20 lines
591 B
PHP
20 lines
591 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace MintyPHP\Tests\Architecture;
|
||
|
|
|
||
|
|
use PHPUnit\Framework\TestCase;
|
||
|
|
|
||
|
|
final class StatusTaxonomyDataContractTest extends TestCase
|
||
|
|
{
|
||
|
|
use ProjectFileAssertionSupport;
|
||
|
|
|
||
|
|
public function testDataEndpointsUseEnumBasedBadgeAndLabelResolution(): void
|
||
|
|
{
|
||
|
|
foreach (StatusTaxonomyContractFiles::taxonomyDataEndpointFiles() as $file) {
|
||
|
|
$content = $this->readProjectFile($file);
|
||
|
|
$this->assertStringContainsString('->badgeVariant()', $content, $file);
|
||
|
|
$this->assertStringContainsString('->labelToken()', $content, $file);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|