aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Controller
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-03 15:46:21 +0200
committerJoas Schilling <coding@schilljs.com>2020-09-03 15:46:21 +0200
commita4b2403e293f0ed8f0a63892f9cd14929d28073e (patch)
tree9c66606f8f7a398c2e8ac1ab132babbd71ec57a1 /tests/Core/Controller
parent5826b75c4025529805135595da46d63c7d46560f (diff)
downloadnextcloud-server-a4b2403e293f0ed8f0a63892f9cd14929d28073e.tar.gz
nextcloud-server-a4b2403e293f0ed8f0a63892f9cd14929d28073e.zip
The privacy setting is only about syncing to other servers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r--tests/Core/Controller/AvatarControllerTest.php33
1 files changed, 0 insertions, 33 deletions
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
*/