forked from fa/breadcrumb-the-shire
21 lines
577 B
PHP
21 lines
577 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Tests\Architecture;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class StatusTaxonomyFilterSchemaContractTest extends TestCase
|
|
{
|
|
use ProjectFileAssertionSupport;
|
|
|
|
public function testFilterSchemasReadTaxonomyValuesFromEnums(): void
|
|
{
|
|
foreach (StatusTaxonomyContractFiles::taxonomySchemaExpectations() as $file => $snippets) {
|
|
$content = $this->readProjectFile($file);
|
|
foreach ($snippets as $snippet) {
|
|
$this->assertStringContainsString($snippet, $content, $file);
|
|
}
|
|
}
|
|
}
|
|
}
|