summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-08 09:13:59 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-09-08 18:44:27 +0200
commit6bb95de1c50208d6cbaf1242f86a2fdab09c2246 (patch)
tree47fa17b753a672e6d93c2186c517df2fd5b355b2 /tests
parentb3d3a95bf3e11a4689884f72f6d6021d4dcff97c (diff)
downloadnextcloud-server-6bb95de1c50208d6cbaf1242f86a2fdab09c2246.tar.gz
nextcloud-server-6bb95de1c50208d6cbaf1242f86a2fdab09c2246.zip
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..86bbdcbbfb0 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' => '',
+ 'publicShareDisclaimer' => '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',
+ 'publicShareDisclaimer' => 'Lorem ipsum',
],
''
);