diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-04-08 17:04:33 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-04-08 17:10:31 -0700 |
commit | 99a1e299f6a6a547ff59f10d7c22a3a04edecfca (patch) | |
tree | f60ff38c1345313a62ec6685011a56cf9ce01d31 | |
parent | 0a873c068d4b4c286b99d24f0bb5a1bd753326d7 (diff) | |
download | nextcloud-server-99a1e299f6a6a547ff59f10d7c22a3a04edecfca.tar.gz nextcloud-server-99a1e299f6a6a547ff59f10d7c22a3a04edecfca.zip |
test: Update tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-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 06ff4086f72..7d09440155c 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') |