Deleted unnecessary integration test and specified parameter

This commit is contained in:
Kevin Frantz 2019-02-24 15:14:31 +01:00
parent baf14680fe
commit a7509afdf2
2 changed files with 1 additions and 21 deletions

View File

@ -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);

View File

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