diff options
author | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2024-01-30 15:08:50 +0100 |
---|---|---|
committer | Baptiste Fotia <fotia.baptiste@hotmail.com> | 2024-01-31 10:44:40 +0100 |
commit | 449d28e610751195ef78cca34ec0deccd0713864 (patch) | |
tree | 90edbb925f725b1a83f498acff08aa826ce1172e /apps/settings/tests | |
parent | 9af96d9f9ac512d8082cd20303068f06646b4a93 (diff) | |
download | nextcloud-server-449d28e610751195ef78cca34ec0deccd0713864.tar.gz nextcloud-server-449d28e610751195ef78cca34ec0deccd0713864.zip |
test(php): Fix the unit tests
I added our context in the unit tests following the advice of Louis.
Link : https://github.com/nextcloud/server/pull/43186#issuecomment-1916571027
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r-- | apps/settings/tests/Settings/Admin/SharingTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/settings/tests/Settings/Admin/SharingTest.php b/apps/settings/tests/Settings/Admin/SharingTest.php index 7dd4e56bcd2..2abb2db3b6f 100644 --- a/apps/settings/tests/Settings/Admin/SharingTest.php +++ b/apps/settings/tests/Settings/Admin/SharingTest.php @@ -118,6 +118,7 @@ class SharingTest extends TestCase { ['core', 'shareapi_remote_expire_after_n_days', '7', '7'], ['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'], ['core', 'shareapi_enforce_links_password_excluded_groups', '', ''], + ['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], ]); $this->shareManager->method('shareWithGroupMembersOnly') ->willReturn(false); @@ -210,6 +211,7 @@ class SharingTest extends TestCase { ['core', 'shareapi_remote_expire_after_n_days', '7', '7'], ['core', 'shareapi_enforce_remote_expire_date', 'no', 'no'], ['core', 'shareapi_enforce_links_password_excluded_groups', '', ''], + ['core', 'shareapi_only_share_with_group_members_exclude_group_list', '', '[]'], ]); $this->shareManager->method('shareWithGroupMembersOnly') ->willReturn(false); |