Added grant to all function to RightChecker and LawPermissionChecker

This commit is contained in:
Kevin Frantz
2019-02-16 16:16:48 +01:00
parent 6f6b720470
commit 256e37ccd5
12 changed files with 130 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ class RecieverAttributTest extends TestCase
public function testConstructor(): void
{
$this->assertFalse($this->reciever->hasReciever());
$this->expectException(\TypeError::class);
$this->reciever->getReciever();
}
@@ -30,7 +31,9 @@ class RecieverAttributTest extends TestCase
public function testAccessors(): void
{
$reciever = $this->createMock(AbstractSource::class);
$this->assertFalse($this->reciever->hasReciever());
$this->assertNull($this->reciever->setReciever($reciever));
$this->assertEquals($reciever, $this->reciever->getReciever());
$this->assertTrue($this->reciever->hasReciever());
}
}