Implemented tests for LayerType

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

View File

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