mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
test: Update tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
b2335b453e
commit
e9ff1216ad
1 changed files with 16 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue