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:
authorJulius Härtl <jus@bitgrid.net>2021-07-09 09:00:03 +0300
committerJulius Härtl <jus@bitgrid.net>2021-07-14 17:08:05 +0300
commit7179002600ccde6d6757c068c9388430ed71a2f1 (patch)
tree5b0fd29678ce392db2764923d5f6bb393435d596 /apps/files_sharing/tests/External/CacheTest.php
parentf43c2b45d8177e8c924b8f97f80c92164a3d5412 (diff)
Allow to get a local cloud id without going through the contacts manager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/tests/External/CacheTest.php')
-rw-r--r--apps/files_sharing/tests/External/CacheTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/External/CacheTest.php b/apps/files_sharing/tests/External/CacheTest.php
index cbac5907d07..c538f7dd760 100644
--- a/apps/files_sharing/tests/External/CacheTest.php
+++ b/apps/files_sharing/tests/External/CacheTest.php
@@ -31,6 +31,8 @@ use OC\Federation\CloudIdManager;
use OCA\Files_Sharing\Tests\TestCase;
use OCP\Contacts\IManager;
use OCP\Federation\ICloudIdManager;
+use OCP\IURLGenerator;
+use OCP\IUserManager;
/**
* Class Cache
@@ -66,7 +68,7 @@ class CacheTest extends TestCase {
$this->contactsManager = $this->createMock(IManager::class);
- $this->cloudIdManager = new CloudIdManager($this->contactsManager);
+ $this->cloudIdManager = new CloudIdManager($this->contactsManager, $this->createMock(IURLGenerator::class), $this->createMock(IUserManager::class));
$this->remoteUser = $this->getUniqueID('remoteuser');
$this->storage = $this->getMockBuilder('\OCA\Files_Sharing\External\Storage')