mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized REST API and tests
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user