diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-20 18:43:17 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-10-21 14:13:01 +0300 |
commit | 7930503cc30d0ec78d02014aec60fb8252b0566c (patch) | |
tree | d521baf45e069c438b11932bdf03455f8a515b7c /tests | |
parent | c4cb5cad48cb3a46b3d549de9443db6f72e132ee (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.php | 6 |
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' : ''); |