summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-04-23 17:29:34 +0200
committerRobin Appelman <robin@icewind.nl>2021-05-12 16:11:28 +0200
commitb1dca57a1ce59bacc4089761275e4366e9760313 (patch)
treeed79b9ab833ee9af257dc4f0e68afbd28656043c /apps/settings
parent7e1c842d96cde01ebb6854b3e28fb998006575b2 (diff)
downloadnextcloud-server-b1dca57a1ce59bacc4089761275e4366e9760313.tar.gz
nextcloud-server-b1dca57a1ce59bacc4089761275e4366e9760313.zip
load share settings from the share manager in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/tests/Settings/Admin/SharingTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings/tests/Settings/Admin/SharingTest.php b/apps/settings/tests/Settings/Admin/SharingTest.php
index 041c4f1717a..2703eddcd5c 100644
--- a/apps/settings/tests/Settings/Admin/SharingTest.php
+++ b/apps/settings/tests/Settings/Admin/SharingTest.php
@@ -90,6 +90,8 @@ class SharingTest extends TestCase {
['core', 'shareapi_remote_expire_after_n_days', '7', '7'],
['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'],
]);
+ $this->shareManager->method('shareWithGroupMembersOnly')
+ ->willReturn(false);
$expected = new TemplateResponse(
'settings',
@@ -121,6 +123,7 @@ class SharingTest extends TestCase {
'shareDefaultRemoteExpireDateSet' => 'no',
'shareRemoteExpireAfterNDays' => '7',
'shareRemoteEnforceExpireDate' => 'no',
+ 'allowLinksExcludeGroups' => '',
],
''
);
@@ -156,6 +159,8 @@ class SharingTest extends TestCase {
['core', 'shareapi_remote_expire_after_n_days', '7', '7'],
['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'],
]);
+ $this->shareManager->method('shareWithGroupMembersOnly')
+ ->willReturn(false);
$expected = new TemplateResponse(
'settings',
@@ -187,6 +192,7 @@ class SharingTest extends TestCase {
'shareDefaultRemoteExpireDateSet' => 'no',
'shareRemoteExpireAfterNDays' => '7',
'shareRemoteEnforceExpireDate' => 'no',
+ 'allowLinksExcludeGroups' => '',
],
''
);