diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-04-17 10:43:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 10:43:05 +0200 |
commit | e31e5429a87c7acaf7f8767b6b5208ad2cc7c103 (patch) | |
tree | e01c386569065d45f179ea2e6a3207c0989d67bb /tests | |
parent | 66579b1fddfdd888dfcfec6ae99536496365f186 (diff) | |
parent | ac0947cab5641fe6e3bb254c8b66fb85388ae045 (diff) | |
download | nextcloud-server-e31e5429a87c7acaf7f8767b6b5208ad2cc7c103.tar.gz nextcloud-server-e31e5429a87c7acaf7f8767b6b5208ad2cc7c103.zip |
Merge pull request #44737 from nextcloud/backport/stable29/44736
[stable29] fix: Fix avatar images
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Avatar/AvatarManagerTest.php | 16 |
1 files changed, 16 insertions, 0 deletions
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') |