summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/Controllers/ShareControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/tests/Controllers/ShareControllerTest.php')
-rw-r--r--apps/files_sharing/tests/Controllers/ShareControllerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/Controllers/ShareControllerTest.php b/apps/files_sharing/tests/Controllers/ShareControllerTest.php
index 1b9fd401f78..cc51d0b1f82 100644
--- a/apps/files_sharing/tests/Controllers/ShareControllerTest.php
+++ b/apps/files_sharing/tests/Controllers/ShareControllerTest.php
@@ -109,7 +109,9 @@ class ShareControllerTest extends \Test\TestCase {
$this->previewManager,
$this->getMockBuilder('\OCP\Files\IRootFolder')->getMock(),
$this->federatedShareProvider,
- $this->eventDispatcher
+ $this->eventDispatcher,
+ $this->getMockBuilder('\OCP\IL10N')->getMock(),
+ $this->getMockBuilder('\OCP\Defaults')->getMock()
);
@@ -392,6 +394,8 @@ class ShareControllerTest extends \Test\TestCase {
'hideFileList' => false,
'shareOwner' => 'ownerDisplay',
'disclaimer' => 'My disclaimer text',
+ 'shareUrl' => null,
+ 'previewImage' => null
);
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();