aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-04-08 17:04:33 -0700
committerChristopher Ng <chrng8@gmail.com>2024-04-08 17:09:26 -0700
commiteb063928f1645517aacc710f78088f1a7724af88 (patch)
treec05c30818577ae963c8210321de7a06144992afc /tests
parentdbb6213c1a79d75d6a06116cf836ff0cd4684f36 (diff)
downloadnextcloud-server-eb063928f1645517aacc710f78088f1a7724af88.tar.gz
nextcloud-server-eb063928f1645517aacc710f78088f1a7724af88.zip
test: Update tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Avatar/AvatarManagerTest.php16
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')