infinito/application/symfony/tests/Integration/Controller/API/Rest/ControllerLayerIntegrationTest.php
2019-02-19 19:36:02 +01:00

21 lines
513 B
PHP

<?php
namespace tests\Integration\Controller\API\Rest;
use PHPUnit\Framework\TestCase;
use Infinito\DBAL\Types\Meta\Right\LayerType;
/**
* @author kevinfrantz
*/
class ControllerLayerIntegrationTest extends TestCase
{
public function testThatControllerForEachLayerExist(): void
{
foreach (LayerType::getChoices() as $layer) {
$className = 'Infinito\\Controller\\API\\Rest\\'.ucfirst($layer).'Controller';
$this->assertTrue(class_exists($className));
}
}
}