diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AppConfigTest.php | 2 | ||||
-rw-r--r-- | tests/lib/Avatar/AvatarManagerTest.php | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php index 86bd339bc7e..3efeed5755d 100644 --- a/tests/lib/AppConfigTest.php +++ b/tests/lib/AppConfigTest.php @@ -1238,7 +1238,7 @@ class AppConfigTest extends TestCase { [ 'app' => 'sensitive-app', 'key' => 'lazy-key', - 'value' => $this->baseStruct['sensitive-app']['lazy-key']['encrypted'], + 'value' => 'value', 'type' => 4, 'lazy' => true, 'typeString' => 'string', diff --git a/tests/lib/Avatar/AvatarManagerTest.php b/tests/lib/Avatar/AvatarManagerTest.php index b35fb2f23a8..a756eff58a0 100644 --- a/tests/lib/Avatar/AvatarManagerTest.php +++ b/tests/lib/Avatar/AvatarManagerTest.php @@ -108,6 +108,11 @@ class AvatarManagerTest extends \Test\TestCase { ->method('getUID') ->willReturn('valid-user'); + $user + ->expects($this->any()) + ->method('isEnabled') + ->willReturn(true); + // requesting user $this->userSession->expects($this->once()) ->method('getUser') @@ -162,6 +167,11 @@ class AvatarManagerTest extends \Test\TestCase { ->method('getUID') ->willReturn('valid-user'); + $user + ->expects($this->any()) + ->method('isEnabled') + ->willReturn(true); + $this->userSession->expects($this->once()) ->method('getUser') ->willReturn($user); @@ -231,6 +241,12 @@ class AvatarManagerTest extends \Test\TestCase { ->expects($this->once()) ->method('getUID') ->willReturn('valid-user'); + + $user + ->expects($this->any()) + ->method('isEnabled') + ->willReturn(true); + $this->userManager ->expects($this->once()) ->method('get') |