diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-03 10:54:25 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-03 10:58:25 +0200 |
commit | 5e7197e49fa6eacb329386aa65e89a4f5d0c2014 (patch) | |
tree | b58f56f0e632a92d235f3c5f09adfb84ea4b2dc0 /tests/lib/Settings | |
parent | 868500eda48a7938491a0e44ade07c9fcf635937 (diff) | |
download | nextcloud-server-5e7197e49fa6eacb329386aa65e89a4f5d0c2014.tar.gz nextcloud-server-5e7197e49fa6eacb329386aa65e89a4f5d0c2014.zip |
fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests/lib/Settings')
-rw-r--r-- | tests/lib/Settings/Admin/SharingTest.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/lib/Settings/Admin/SharingTest.php b/tests/lib/Settings/Admin/SharingTest.php index 122bf2b6caf..0bf03559683 100644 --- a/tests/lib/Settings/Admin/SharingTest.php +++ b/tests/lib/Settings/Admin/SharingTest.php @@ -104,6 +104,11 @@ class SharingTest extends TestCase { ->method('getAppValue') ->with('core', 'shareapi_public_link_disclaimertext', null) ->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( 'settings', @@ -122,7 +127,8 @@ class SharingTest extends TestCase { 'shareEnforceExpireDate' => 'no', 'shareExcludeGroups' => false, 'shareExcludedGroupsList' => '', - 'publicShareDisclaimerText' => 'Lorem ipsum', + 'publicShareDisclaimerText' => 'Lorem ipsum', + 'enableLinkPasswordByDefault' => 'yes' ], '' ); @@ -191,6 +197,11 @@ class SharingTest extends TestCase { ->method('getAppValue') ->with('core', 'shareapi_public_link_disclaimertext', null) ->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( 'settings', @@ -209,7 +220,8 @@ class SharingTest extends TestCase { 'shareEnforceExpireDate' => 'no', 'shareExcludeGroups' => true, 'shareExcludedGroupsList' => 'NoSharers|OtherNoSharers', - 'publicShareDisclaimerText' => 'Lorem ipsum', + 'publicShareDisclaimerText' => 'Lorem ipsum', + 'enableLinkPasswordByDefault' => 'yes' ], '' ); |