mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Deleted unnecessary integration test and specified parameter
This commit is contained in:
parent
baf14680fe
commit
a7509afdf2
@ -35,7 +35,7 @@ final class LayerController extends AbstractAPIController
|
||||
*
|
||||
* @see \Infinito\Controller\API\AbstractAPIController::read()
|
||||
*/
|
||||
public function read(MVCRoutineServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, $layer, $identity): Response
|
||||
public function read(MVCRoutineServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, string $layer, $identity): Response
|
||||
{
|
||||
$requestedActionService->setActionType(ActionType::READ);
|
||||
$requestedActionService->setLayer($layer);
|
||||
|
@ -1,20 +0,0 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user