diff options
Diffstat (limited to 'tests/Unit/Helpers/AuthenticatorTest.php')
-rw-r--r-- | tests/Unit/Helpers/AuthenticatorTest.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/Unit/Helpers/AuthenticatorTest.php b/tests/Unit/Helpers/AuthenticatorTest.php index 83dc72ad..d601a77f 100644 --- a/tests/Unit/Helpers/AuthenticatorTest.php +++ b/tests/Unit/Helpers/AuthenticatorTest.php @@ -132,7 +132,7 @@ class AuthenticatorTest extends ServiceProviderTest ->getMock(); $auth->expects($this->exactly(1)) ->method('getPermissionsByGroup') - ->with(-10) + ->with(10) ->willReturn([]); $auth->expects($this->exactly(1)) ->method('getPermissionsByUser') @@ -252,6 +252,18 @@ class AuthenticatorTest extends ServiceProviderTest } /** + * @covers \Engelsystem\Helpers\Authenticator::setGuestRole + * @covers \Engelsystem\Helpers\Authenticator::getGuestRole + */ + public function testGuestRole() + { + $auth = $this->getAuthenticator(); + + $auth->setGuestRole(42); + $this->assertEquals(42, $auth->getGuestRole()); + } + + /** * @return Authenticator */ protected function getAuthenticator() |