|
|
|
@ -107,6 +107,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')
|
|
|
|
@ -161,6 +166,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);
|
|
|
|
@ -230,6 +240,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')
|
|
|
|
|