@@ -277,7 +277,7 @@ public function testCreateSendPasswordByMailWithPasswordAndWithoutEnforcedPasswo
277277 // The given password (but not the autogenerated password) should not be
278278 // mailed to the receiver of the share because permanent passwords are not enforced.
279279 $ this ->shareManager ->expects ($ this ->any ())->method ('shareApiLinkEnforcePassword ' )->willReturn (false );
280- $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('allow_mail_share_permanent_password ' )->willReturn (false );
280+ $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('sharing.enable_mail_link_password_expiration ' )->willReturn (false );
281281 $ instance ->expects ($ this ->never ())->method ('autoGeneratePassword ' );
282282
283283 $ this ->assertSame ('shareObject ' ,
@@ -310,7 +310,7 @@ public function testCreateSendPasswordByMailWithPasswordAndWithoutEnforcedPasswo
310310 // The given password (but not the autogenerated password) should be
311311 // mailed to the receiver of the share because permanent passwords are enforced.
312312 $ this ->shareManager ->expects ($ this ->any ())->method ('shareApiLinkEnforcePassword ' )->willReturn (false );
313- $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('allow_mail_share_permanent_password ' )->willReturn (true );
313+ $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('sharing.enable_mail_link_password_expiration ' )->willReturn (true );
314314 $ this ->settingsManager ->expects ($ this ->any ())->method ('sendPasswordByMail ' )->willReturn (true );
315315 $ instance ->expects ($ this ->never ())->method ('autoGeneratePassword ' );
316316
@@ -363,7 +363,7 @@ public function testCreateSendPasswordByMailWithEnforcedPasswordProtectionWithPe
363363
364364 // The autogenerated password should be mailed to the receiver of the share because permanent passwords are enforced.
365365 $ this ->shareManager ->expects ($ this ->any ())->method ('shareApiLinkEnforcePassword ' )->willReturn (true );
366- $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('allow_mail_share_permanent_password ' )->willReturn (true );
366+ $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('sharing.enable_mail_link_password_expiration ' )->willReturn (true );
367367 $ this ->settingsManager ->expects ($ this ->any ())->method ('sendPasswordByMail ' )->willReturn (true );
368368
369369 $ message = $ this ->createMock (IMessage::class);
@@ -408,7 +408,7 @@ public function testCreateSendPasswordByMailWithPasswordAndWithEnforcedPasswordP
408408 // The given password (but not the autogenerated password) should be
409409 // mailed to the receiver of the share.
410410 $ this ->shareManager ->expects ($ this ->any ())->method ('shareApiLinkEnforcePassword ' )->willReturn (true );
411- $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('allow_mail_share_permanent_password ' )->willReturn (true );
411+ $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('sharing.enable_mail_link_password_expiration ' )->willReturn (true );
412412 $ this ->settingsManager ->expects ($ this ->any ())->method ('sendPasswordByMail ' )->willReturn (true );
413413 $ instance ->expects ($ this ->never ())->method ('autoGeneratePassword ' );
414414
@@ -453,7 +453,7 @@ public function testCreateSendPasswordByTalkWithEnforcedPasswordProtection() {
453453
454454 // The autogenerated password should be mailed to the owner of the share.
455455 $ this ->shareManager ->expects ($ this ->any ())->method ('shareApiLinkEnforcePassword ' )->willReturn (true );
456- $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('allow_mail_share_permanent_password ' )->willReturn (false );
456+ $ this ->config ->expects ($ this ->once ())->method ('getSystemValue ' )->with ('sharing.enable_mail_link_password_expiration ' )->willReturn (false );
457457 $ this ->settingsManager ->expects ($ this ->any ())->method ('sendPasswordByMail ' )->willReturn (true );
458458 $ instance ->expects ($ this ->once ())->method ('autoGeneratePassword ' )->with ($ share )->willReturn ('autogeneratedPassword ' );
459459
0 commit comments