]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix unit tests 4093/head
authorBjoern Schiessle <bjoern@schiessle.org>
Mon, 3 Apr 2017 08:54:25 +0000 (10:54 +0200)
committerBjoern Schiessle <bjoern@schiessle.org>
Mon, 3 Apr 2017 08:58:25 +0000 (10:58 +0200)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
tests/lib/Settings/Admin/SharingTest.php

index 122bf2b6cafe8ee59426acb5d4222c584c676f98..0bf0355968301f7d3ac0f985169025e3fea929ff 100644 (file)
@@ -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'
                        ],
                        ''
                );