@@ -137,6 +137,7 @@ public function testOnlyLinkSharing() {
137137 $ map = [
138138 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
139139 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
140+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
140141 ];
141142 $ result = $ this ->getResults ($ map );
142143 $ this ->assertIsArray ($ result ['public ' ]);
@@ -147,6 +148,7 @@ public function testLinkPassword() {
147148 $ map = [
148149 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
149150 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
151+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
150152 ['core ' , 'shareapi_enforce_links_password ' , 'no ' , 'yes ' ],
151153 ];
152154 $ result = $ this ->getResults ($ map );
@@ -159,6 +161,7 @@ public function testLinkNoPassword() {
159161 $ map = [
160162 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
161163 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
164+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
162165 ['core ' , 'shareapi_enforce_links_password ' , 'no ' , 'no ' ],
163166 ];
164167 $ result = $ this ->getResults ($ map );
@@ -172,6 +175,7 @@ public function testLinkNoExpireDate() {
172175 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
173176 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
174177 ['core ' , 'shareapi_default_expire_date ' , 'no ' , 'no ' ],
178+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
175179 ];
176180 $ result = $ this ->getResults ($ map );
177181 $ this ->assertArrayHasKey ('expire_date ' , $ result ['public ' ]);
@@ -186,6 +190,7 @@ public function testLinkExpireDate() {
186190 ['core ' , 'shareapi_default_expire_date ' , 'no ' , 'yes ' ],
187191 ['core ' , 'shareapi_expire_after_n_days ' , '7 ' , '7 ' ],
188192 ['core ' , 'shareapi_enforce_expire_date ' , 'no ' , 'no ' ],
193+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
189194 ];
190195 $ result = $ this ->getResults ($ map );
191196 $ this ->assertArrayHasKey ('expire_date ' , $ result ['public ' ]);
@@ -201,6 +206,7 @@ public function testLinkExpireDateEnforced() {
201206 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
202207 ['core ' , 'shareapi_default_expire_date ' , 'no ' , 'yes ' ],
203208 ['core ' , 'shareapi_enforce_expire_date ' , 'no ' , 'yes ' ],
209+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
204210 ];
205211 $ result = $ this ->getResults ($ map );
206212 $ this ->assertArrayHasKey ('expire_date ' , $ result ['public ' ]);
@@ -213,6 +219,7 @@ public function testLinkSendMail() {
213219 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
214220 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
215221 ['core ' , 'shareapi_allow_public_notification ' , 'no ' , 'yes ' ],
222+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
216223 ];
217224 $ result = $ this ->getResults ($ map );
218225 $ this ->assertTrue ($ result ['public ' ]['send_mail ' ]);
@@ -223,6 +230,7 @@ public function testLinkNoSendMail() {
223230 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
224231 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
225232 ['core ' , 'shareapi_allow_public_notification ' , 'no ' , 'no ' ],
233+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
226234 ];
227235 $ result = $ this ->getResults ($ map );
228236 $ this ->assertFalse ($ result ['public ' ]['send_mail ' ]);
@@ -232,6 +240,7 @@ public function testResharing() {
232240 $ map = [
233241 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
234242 ['core ' , 'shareapi_allow_resharing ' , 'yes ' , 'yes ' ],
243+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
235244 ];
236245 $ result = $ this ->getResults ($ map );
237246 $ this ->assertTrue ($ result ['resharing ' ]);
@@ -241,6 +250,7 @@ public function testNoResharing() {
241250 $ map = [
242251 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
243252 ['core ' , 'shareapi_allow_resharing ' , 'yes ' , 'no ' ],
253+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
244254 ];
245255 $ result = $ this ->getResults ($ map );
246256 $ this ->assertFalse ($ result ['resharing ' ]);
@@ -251,6 +261,7 @@ public function testLinkPublicUpload() {
251261 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
252262 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
253263 ['core ' , 'shareapi_allow_public_upload ' , 'yes ' , 'yes ' ],
264+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
254265 ];
255266 $ result = $ this ->getResults ($ map );
256267 $ this ->assertTrue ($ result ['public ' ]['upload ' ]);
@@ -262,6 +273,7 @@ public function testLinkNoPublicUpload() {
262273 ['core ' , 'shareapi_enabled ' , 'yes ' , 'yes ' ],
263274 ['core ' , 'shareapi_allow_links ' , 'yes ' , 'yes ' ],
264275 ['core ' , 'shareapi_allow_public_upload ' , 'yes ' , 'no ' ],
276+ ['core ' , 'shareapi_enforce_links_password_excluded_groups ' , '' , '' ],
265277 ];
266278 $ result = $ this ->getResults ($ map );
267279 $ this ->assertFalse ($ result ['public ' ]['upload ' ]);
0 commit comments