summaryrefslogtreecommitdiff
path: root/tests/Unit/Helpers/AuthenticatorTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-06 12:29:58 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-06 12:29:58 +0100
commit867d720f150dc5a728a092f8d66d8b1c1a5efc5a (patch)
tree633d4e4fcb86bac3b3618346608408ad667f1ad6 /tests/Unit/Helpers/AuthenticatorTest.php
parent109f112131fd13b5b7c7f26bc9413071dad566f1 (diff)
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/Helpers/AuthenticatorTest.php')
-rw-r--r--tests/Unit/Helpers/AuthenticatorTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Helpers/AuthenticatorTest.php b/tests/Unit/Helpers/AuthenticatorTest.php
index 83dc72ad..1dc39a28 100644
--- a/tests/Unit/Helpers/AuthenticatorTest.php
+++ b/tests/Unit/Helpers/AuthenticatorTest.php
@@ -128,7 +128,7 @@ class AuthenticatorTest extends ServiceProviderTest
/** @var Authenticator|MockObject $auth */
$auth = $this->getMockBuilder(Authenticator::class)
->setConstructorArgs([$request, $session, $userRepository])
- ->setMethods(['getPermissionsByGroup', 'getPermissionsByUser', 'user'])
+ ->onlyMethods(['getPermissionsByGroup', 'getPermissionsByUser', 'user'])
->getMock();
$auth->expects($this->exactly(1))
->method('getPermissionsByGroup')
@@ -203,7 +203,7 @@ class AuthenticatorTest extends ServiceProviderTest
/** @var Authenticator|MockObject $auth */
$auth = $this->getMockBuilder(Authenticator::class)
->disableOriginalConstructor()
- ->setMethods(['setPassword'])
+ ->onlyMethods(['setPassword'])
->getMock();
$auth->expects($this->once())