Implemented more layers

This commit is contained in:
Kevin Frantz
2019-01-05 18:06:50 +01:00
parent 19dd487c91
commit 36f8e597f7
5 changed files with 72 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ class RightCheckerTest extends TestCase
public function setUp(): void
{
$this->layer = LayerType::RELATION;
$this->layer = LayerType::MEMBER;
$this->type = CRUDType::READ;
$this->source = new PureSource();
$this->right = new Right();

View File

@@ -29,11 +29,7 @@ class LayerAttributTest extends TestCase
public function testAccessors(): void
{
foreach ([
LayerType::LAW,
LayerType::RELATION,
LayerType::SOURCE,
] as $value) {
foreach (LayerType::getChoices() as $value) {
$this->assertNull($this->layer->setLayer($value));
$this->assertEquals($value, $this->layer->getLayer());
}