diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-25 17:32:49 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-15 10:06:09 +0200 |
commit | af61486aea90cfc1a82301ce624dffb59ed01e07 (patch) | |
tree | 9b608272439503e0015ece40ae4b77013eabc81f /apps/settings/tests/Settings | |
parent | 2650da70caa73c8bf3119edebb37e91d67f3a214 (diff) | |
download | nextcloud-server-af61486aea90cfc1a82301ce624dffb59ed01e07.tar.gz nextcloud-server-af61486aea90cfc1a82301ce624dffb59ed01e07.zip |
Separate settings for remote share expiration
Added separate settings for default and enforced expiration date for
remote shares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/settings/tests/Settings')
-rw-r--r-- | apps/settings/tests/Settings/Admin/SharingTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/settings/tests/Settings/Admin/SharingTest.php b/apps/settings/tests/Settings/Admin/SharingTest.php index 1f24ef13d4b..041c4f1717a 100644 --- a/apps/settings/tests/Settings/Admin/SharingTest.php +++ b/apps/settings/tests/Settings/Admin/SharingTest.php @@ -86,6 +86,9 @@ class SharingTest extends TestCase { ['core', 'shareapi_default_internal_expire_date', 'no', 'no'], ['core', 'shareapi_internal_expire_after_n_days', '7', '7'], ['core', 'shareapi_enforce_internal_expire_date', 'no', 'no'], + ['core', 'shareapi_default_remote_expire_date', 'no', 'no'], + ['core', 'shareapi_remote_expire_after_n_days', '7', '7'], + ['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'], ]); $expected = new TemplateResponse( @@ -115,6 +118,9 @@ class SharingTest extends TestCase { 'shareDefaultInternalExpireDateSet' => 'no', 'shareInternalExpireAfterNDays' => '7', 'shareInternalEnforceExpireDate' => 'no', + 'shareDefaultRemoteExpireDateSet' => 'no', + 'shareRemoteExpireAfterNDays' => '7', + 'shareRemoteEnforceExpireDate' => 'no', ], '' ); @@ -146,6 +152,9 @@ class SharingTest extends TestCase { ['core', 'shareapi_default_internal_expire_date', 'no', 'no'], ['core', 'shareapi_internal_expire_after_n_days', '7', '7'], ['core', 'shareapi_enforce_internal_expire_date', 'no', 'no'], + ['core', 'shareapi_default_remote_expire_date', 'no', 'no'], + ['core', 'shareapi_remote_expire_after_n_days', '7', '7'], + ['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'], ]); $expected = new TemplateResponse( @@ -175,6 +184,9 @@ class SharingTest extends TestCase { 'shareDefaultInternalExpireDateSet' => 'no', 'shareInternalExpireAfterNDays' => '7', 'shareInternalEnforceExpireDate' => 'no', + 'shareDefaultRemoteExpireDateSet' => 'no', + 'shareRemoteExpireAfterNDays' => '7', + 'shareRemoteEnforceExpireDate' => 'no', ], '' ); |