Optimized Tests and attributes

This commit is contained in:
Kevin Frantz
2019-01-27 18:38:21 +01:00
parent 0593a8f1c3
commit 17a6ee1dc6
7 changed files with 45 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ use App\Domain\RequestManagement\Action\RequestedAction;
use App\DBAL\Types\ActionType;
use App\DBAL\Types\Meta\Right\CRUDType;
use App\Repository\Source\SourceRepositoryInterface;
use App\DBAL\Types\Meta\Right\LayerType;
/**
* @author kevinfrantz
@@ -54,4 +55,13 @@ class RequestedActionTest extends TestCase
$this->assertEquals($crud, $this->requestedRight->getCrud());
}
}
public function testLayer(): void
{
foreach (LayerType::getChoices() as $LayerType) {
$this->action->setLayer($LayerType);
$this->assertEquals($LayerType, $this->action->getLayer());
$this->assertEquals($LayerType, $this->requestedRight->getLayer());
}
}
}