diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-09-08 20:34:04 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-08 20:34:04 +0200 |
commit | 268c5a0aa010cda1438a32fbbd9d433ebc555902 (patch) | |
tree | 35d3367a47ec501da69c7a1a5471043d20873543 /apps/files_sharing/tests/Controllers | |
parent | 404b212b87457429b441911abc3e38699ab6eae7 (diff) | |
download | nextcloud-server-268c5a0aa010cda1438a32fbbd9d433ebc555902.tar.gz nextcloud-server-268c5a0aa010cda1438a32fbbd9d433ebc555902.zip |
Adjust test
Diffstat (limited to 'apps/files_sharing/tests/Controllers')
-rw-r--r-- | apps/files_sharing/tests/Controllers/ShareControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/Controllers/ShareControllerTest.php b/apps/files_sharing/tests/Controllers/ShareControllerTest.php index 34ed08629af..1b9fd401f78 100644 --- a/apps/files_sharing/tests/Controllers/ShareControllerTest.php +++ b/apps/files_sharing/tests/Controllers/ShareControllerTest.php @@ -357,6 +357,11 @@ class ShareControllerTest extends \Test\TestCase { ->method('getShareByToken') ->with('token') ->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); @@ -385,7 +390,8 @@ class ShareControllerTest extends \Test\TestCase { 'previewMaxX' => 1024, 'previewMaxY' => 1024, 'hideFileList' => false, - 'shareOwner' => 'ownerDisplay' + 'shareOwner' => 'ownerDisplay', + 'disclaimer' => 'My disclaimer text', ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); |