diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-04-08 17:04:33 -0700 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-04-11 14:56:21 +0200 |
commit | ac0947cab5641fe6e3bb254c8b66fb85388ae045 (patch) | |
tree | 3478287d4edba8438a238bade900381d52d9c88b /tests | |
parent | 35ce93933249bcb5a173d66c116866087e3d1760 (diff) | |
download | nextcloud-server-ac0947cab5641fe6e3bb254c8b66fb85388ae045.tar.gz nextcloud-server-ac0947cab5641fe6e3bb254c8b66fb85388ae045.zip |
test: Update tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
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') |