<?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);
        }
    }
}
