]> source.dussan.org Git - nextcloud-server.git/commitdiff
test: Update tests 44741/head
authorChristopher Ng <chrng8@gmail.com>
Tue, 9 Apr 2024 00:04:33 +0000 (17:04 -0700)
committerChristopher Ng <chrng8@gmail.com>
Tue, 9 Apr 2024 00:11:26 +0000 (17:11 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
tests/lib/Avatar/AvatarManagerTest.php

index 06ff4086f72339e6fc1173a0bde9558c9230f251..7d09440155ce21904ebe11663ddb9ffed9bff2f0 100644 (file)
@@ -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')