Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-11-10 01:49:01 +0300
committerGitHub <noreply@github.com>2021-11-10 01:49:01 +0300
commita99efca55116387acb2458461054ca2615279b8b (patch)
treee7c7d18802418f1ba6cd84184eb6ef2ede9e1c16 /apps/files_sharing
parent52f8f4a399cd6f50ac7bd59253f0c343fbf10d2e (diff)
parent3b91e4cc48d92430959698602fedd222d70c1c07 (diff)
Merge pull request #29559 from nextcloud/feat/28139/profile-respect-user-enumeration
Respect user enumeration settings on profile
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/CapabilitiesTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/CapabilitiesTest.php b/apps/files_sharing/tests/CapabilitiesTest.php
index eb10c927140..01ef13a3e6c 100644
--- a/apps/files_sharing/tests/CapabilitiesTest.php
+++ b/apps/files_sharing/tests/CapabilitiesTest.php
@@ -28,6 +28,7 @@
*/
namespace OCA\Files_Sharing\Tests;
+use OC\KnownUser\KnownUserService;
use OC\Share20\Manager;
use OCA\Files_Sharing\Capabilities;
use OCP\EventDispatcher\IEventDispatcher;
@@ -94,7 +95,8 @@ class CapabilitiesTest extends \Test\TestCase {
$this->createMock(IURLGenerator::class),
$this->createMock(\OC_Defaults::class),
$this->createMock(IEventDispatcher::class),
- $this->createMock(IUserSession::class)
+ $this->createMock(IUserSession::class),
+ $this->createMock(KnownUserService::class)
);
$cap = new Capabilities($config, $shareManager);
$result = $this->getFilesSharingPart($cap->getCapabilities());