Skip to content
Snippets Groups Projects
Unverified Commit 268c5a0a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Adjust test

parent 404b212b
No related branches found
No related tags found
No related merge requests found
...@@ -357,6 +357,11 @@ class ShareControllerTest extends \Test\TestCase { ...@@ -357,6 +357,11 @@ class ShareControllerTest extends \Test\TestCase {
->method('getShareByToken') ->method('getShareByToken')
->with('token') ->with('token')
->willReturn($share); ->willReturn($share);
$this->config
->expects($this->once())
->method('getAppValue')
->with('core', 'shareapi_public_link_disclaimertext', null)
->willReturn('My disclaimer text');
$this->userManager->method('get')->with('ownerUID')->willReturn($owner); $this->userManager->method('get')->with('ownerUID')->willReturn($owner);
...@@ -385,7 +390,8 @@ class ShareControllerTest extends \Test\TestCase { ...@@ -385,7 +390,8 @@ class ShareControllerTest extends \Test\TestCase {
'previewMaxX' => 1024, 'previewMaxX' => 1024,
'previewMaxY' => 1024, 'previewMaxY' => 1024,
'hideFileList' => false, 'hideFileList' => false,
'shareOwner' => 'ownerDisplay' 'shareOwner' => 'ownerDisplay',
'disclaimer' => 'My disclaimer text',
); );
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment