Implemented tests for LayerType

This commit is contained in:
Kevin Frantz committed 2018-11-06 22:42:24 +01:00
1 parent 0bc9ca20a9
commit b13ca37959
3 files changed
+54 -3

No files matched your search

@@ -29,11 +29,21 @@ class RightTest extends TestCase
{
$this->assertEquals($this->right, $this->right->getReciever()->getRight());
$this->assertTrue($this->right->getGrant());
}
public function testConstructorLayer(): void
{
$this->expectException(\TypeError::class);
$this->assertNull($this->right->getLayer());
}
public function testConstructorLaw(): void
{
$this->expectException(\TypeError::class);
$this->assertNull($this->right->getLaw());
}
public function testConstructorCondition()
public function testConstructorCondition(): void
{
$this->expectException(\TypeError::class);
$this->right->getCondition();