diff options
Diffstat (limited to 'apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php')
-rw-r--r-- | apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php index 11dd585f662..412b5b82d64 100644 --- a/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php +++ b/apps/federatedfilesharing/tests/Controller/MountPublicLinkControllerTest.php @@ -34,6 +34,7 @@ use OCA\FederatedFileSharing\AddressHandler; use OCA\FederatedFileSharing\Controller\MountPublicLinkController; use OCA\FederatedFileSharing\FederatedShareProvider; use OCP\AppFramework\Http; +use OCP\Contacts\IManager as IContactsManager; use OCP\Federation\ICloudIdManager; use OCP\Files\IRootFolder; use OCP\Http\Client\IClientService; @@ -46,6 +47,8 @@ use OCP\Share\IManager; use OCP\Share\IShare; class MountPublicLinkControllerTest extends \Test\TestCase { + /** @var IContactsManager|\PHPUnit\Framework\MockObject\MockObject */ + protected $contactsManager; /** @var MountPublicLinkController */ private $controller; @@ -102,7 +105,8 @@ class MountPublicLinkControllerTest extends \Test\TestCase { $this->l10n = $this->getMockBuilder(IL10N::class)->disableOriginalConstructor()->getMock(); $this->userSession = $this->getMockBuilder(IUserSession::class)->disableOriginalConstructor()->getMock(); $this->clientService = $this->getMockBuilder('OCP\Http\Client\IClientService')->disableOriginalConstructor()->getMock(); - $this->cloudIdManager = new CloudIdManager(); + $this->contactsManager = $this->createMock(IContactsManager::class); + $this->cloudIdManager = new CloudIdManager($this->contactsManager); $this->controller = new MountPublicLinkController( 'federatedfilesharing', $this->request, |