summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-08 21:18:28 +0200
committerGitHub <noreply@github.com>2016-09-08 21:18:28 +0200
commitc16aefcff50b9e63fdc6aaa3c2307b0983bbd56e (patch)
tree3f14f6aaa6d54b437cc5d104f3fe61147280979f /tests
parent5ac26d12f0a771bcaf8a44acdb469b68daebc446 (diff)
parent268c5a0aa010cda1438a32fbbd9d433ebc555902 (diff)
downloadnextcloud-server-c16aefcff50b9e63fdc6aaa3c2307b0983bbd56e.tar.gz
nextcloud-server-c16aefcff50b9e63fdc6aaa3c2307b0983bbd56e.zip
Merge pull request #1317 from nextcloud/add-sharing-disclaimer
Adding a optional disclaimer to the anonymous upload page
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/Admin/SharingTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/Settings/Admin/SharingTest.php b/tests/lib/Settings/Admin/SharingTest.php
index 38ab7614d1c..d0cda5308f5 100644
--- a/tests/lib/Settings/Admin/SharingTest.php
+++ b/tests/lib/Settings/Admin/SharingTest.php
@@ -109,6 +109,11 @@ class SharingTest extends TestCase {
->method('getAppValue')
->with('core', 'shareapi_exclude_groups', 'no')
->willReturn('no');
+ $this->config
+ ->expects($this->at(13))
+ ->method('getAppValue')
+ ->with('core', 'shareapi_public_link_disclaimertext', null)
+ ->willReturn('Lorem ipsum');
$expected = new TemplateResponse(
'settings',
@@ -129,6 +134,7 @@ class SharingTest extends TestCase {
'shareEnforceExpireDate' => 'no',
'shareExcludeGroups' => false,
'shareExcludedGroupsList' => '',
+ 'publicShareDisclaimerText' => 'Lorem ipsum',
],
''
);
@@ -202,6 +208,11 @@ class SharingTest extends TestCase {
->method('getAppValue')
->with('core', 'shareapi_exclude_groups', 'no')
->willReturn('yes');
+ $this->config
+ ->expects($this->at(13))
+ ->method('getAppValue')
+ ->with('core', 'shareapi_public_link_disclaimertext', null)
+ ->willReturn('Lorem ipsum');
$expected = new TemplateResponse(
'settings',
@@ -222,6 +233,7 @@ class SharingTest extends TestCase {
'shareEnforceExpireDate' => 'no',
'shareExcludeGroups' => true,
'shareExcludedGroupsList' => 'NoSharers|OtherNoSharers',
+ 'publicShareDisclaimerText' => 'Lorem ipsum',
],
''
);