From a4b2403e293f0ed8f0a63892f9cd14929d28073e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Sep 2020 15:46:21 +0200 Subject: The privacy setting is only about syncing to other servers Signed-off-by: Joas Schilling --- tests/Core/Controller/AvatarControllerTest.php | 33 -------------------------- 1 file changed, 33 deletions(-) (limited to 'tests/Core/Controller') diff --git a/tests/Core/Controller/AvatarControllerTest.php b/tests/Core/Controller/AvatarControllerTest.php index f070897e1b1..678648fa176 100644 --- a/tests/Core/Controller/AvatarControllerTest.php +++ b/tests/Core/Controller/AvatarControllerTest.php @@ -145,39 +145,6 @@ class AvatarControllerTest extends \Test\TestCase { $this->assertEquals(Http::STATUS_NOT_FOUND, $response->getStatus()); } - public function testAvatarNotPublic() { - $account = $this->createMock(IAccount::class); - $this->accountManager->method('getAccount') - ->with($this->userMock) - ->willReturn($account); - - $property = $this->createMock(IAccountProperty::class); - $account->method('getProperty') - ->with(IAccountManager::PROPERTY_AVATAR) - ->willReturn($property); - - $property->method('getScope') - ->willReturn(IAccountManager::VISIBILITY_PRIVATE); - - $controller = new AvatarController( - 'core', - $this->request, - $this->avatarManager, - $this->cache, - $this->l, - $this->userManager, - $this->rootFolder, - $this->logger, - null, - $this->timeFactory, - $this->accountManager - ); - - $result = $controller->getAvatar('userId', 128); - - $this->assertEquals(Http::STATUS_NOT_FOUND, $result->getStatus()); - } - /** * Fetch the user's avatar */ -- cgit v1.2.3