fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
868500eda4
commit
5e7197e49f
|
@ -104,6 +104,11 @@ class SharingTest extends TestCase {
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
->with('core', 'shareapi_public_link_disclaimertext', null)
|
->with('core', 'shareapi_public_link_disclaimertext', null)
|
||||||
->willReturn('Lorem ipsum');
|
->willReturn('Lorem ipsum');
|
||||||
|
$this->config
|
||||||
|
->expects($this->at(12))
|
||||||
|
->method('getAppValue')
|
||||||
|
->with('core', 'shareapi_enable_link_password_by_default', 'no')
|
||||||
|
->willReturn('yes');
|
||||||
|
|
||||||
$expected = new TemplateResponse(
|
$expected = new TemplateResponse(
|
||||||
'settings',
|
'settings',
|
||||||
|
@ -122,7 +127,8 @@ class SharingTest extends TestCase {
|
||||||
'shareEnforceExpireDate' => 'no',
|
'shareEnforceExpireDate' => 'no',
|
||||||
'shareExcludeGroups' => false,
|
'shareExcludeGroups' => false,
|
||||||
'shareExcludedGroupsList' => '',
|
'shareExcludedGroupsList' => '',
|
||||||
'publicShareDisclaimerText' => 'Lorem ipsum',
|
'publicShareDisclaimerText' => 'Lorem ipsum',
|
||||||
|
'enableLinkPasswordByDefault' => 'yes'
|
||||||
],
|
],
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
@ -191,6 +197,11 @@ class SharingTest extends TestCase {
|
||||||
->method('getAppValue')
|
->method('getAppValue')
|
||||||
->with('core', 'shareapi_public_link_disclaimertext', null)
|
->with('core', 'shareapi_public_link_disclaimertext', null)
|
||||||
->willReturn('Lorem ipsum');
|
->willReturn('Lorem ipsum');
|
||||||
|
$this->config
|
||||||
|
->expects($this->at(12))
|
||||||
|
->method('getAppValue')
|
||||||
|
->with('core', 'shareapi_enable_link_password_by_default', 'no')
|
||||||
|
->willReturn('yes');
|
||||||
|
|
||||||
$expected = new TemplateResponse(
|
$expected = new TemplateResponse(
|
||||||
'settings',
|
'settings',
|
||||||
|
@ -209,7 +220,8 @@ class SharingTest extends TestCase {
|
||||||
'shareEnforceExpireDate' => 'no',
|
'shareEnforceExpireDate' => 'no',
|
||||||
'shareExcludeGroups' => true,
|
'shareExcludeGroups' => true,
|
||||||
'shareExcludedGroupsList' => 'NoSharers|OtherNoSharers',
|
'shareExcludedGroupsList' => 'NoSharers|OtherNoSharers',
|
||||||
'publicShareDisclaimerText' => 'Lorem ipsum',
|
'publicShareDisclaimerText' => 'Lorem ipsum',
|
||||||
|
'enableLinkPasswordByDefault' => 'yes'
|
||||||
],
|
],
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue