Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-20 18:43:17 +0300
committerJulius Härtl <jus@bitgrid.net>2021-10-21 14:13:01 +0300
commit7930503cc30d0ec78d02014aec60fb8252b0566c (patch)
treed521baf45e069c438b11932bdf03455f8a515b7c /tests
parentc4cb5cad48cb3a46b3d549de9443db6f72e132ee (diff)
Adapt user data mocks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Controller/SAMLControllerTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/Controller/SAMLControllerTest.php b/tests/unit/Controller/SAMLControllerTest.php
index c9af16f6..7700ab50 100644
--- a/tests/unit/Controller/SAMLControllerTest.php
+++ b/tests/unit/Controller/SAMLControllerTest.php
@@ -252,6 +252,12 @@ class SAMLControllerTest extends TestCase {
->willReturn('MyUid');
$this->userData
->expects($this->any())
+ ->method('testEncodedObjectGUID')
+ ->willReturnCallback(function ($uid) {
+ return $uid;
+ });
+ $this->userData
+ ->expects($this->any())
->method('getEffectiveUid')
->willReturn($userState > 0 ? 'MyUid' : '');