Skip to content

Commit 3300f28

Browse files
committed
test: Update tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 0edaff7 commit 3300f28

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/lib/Avatar/AvatarManagerTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ public function testGetAvatarForSelf() {
108108
->method('getUID')
109109
->willReturn('valid-user');
110110

111+
$user
112+
->expects($this->any())
113+
->method('isEnabled')
114+
->willReturn(true);
115+
111116
// requesting user
112117
$this->userSession->expects($this->once())
113118
->method('getUser')
@@ -162,6 +167,11 @@ public function testGetAvatarValidUserDifferentCasing() {
162167
->method('getUID')
163168
->willReturn('valid-user');
164169

170+
$user
171+
->expects($this->any())
172+
->method('isEnabled')
173+
->willReturn(true);
174+
165175
$this->userSession->expects($this->once())
166176
->method('getUser')
167177
->willReturn($user);
@@ -231,6 +241,12 @@ public function testGetAvatarScopes($avatarScope, $isPublicCall, $isKnownUser, $
231241
->expects($this->once())
232242
->method('getUID')
233243
->willReturn('valid-user');
244+
245+
$user
246+
->expects($this->any())
247+
->method('isEnabled')
248+
->willReturn(true);
249+
234250
$this->userManager
235251
->expects($this->once())
236252
->method('get')

0 commit comments

Comments
 (0)