diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-11-02 22:36:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 22:36:05 +0100 |
commit | 39573e602d5e38e4b71b3d197d08798dd9558659 (patch) | |
tree | 1a4045bda8e05ad3537a9bf974834e1731a1e2cd /tests | |
parent | 178d7f5bfa49bcf54d85ce788268ba592608627a (diff) | |
parent | 7d17b42f4df2322c1078c99840a9d35415ffd7aa (diff) | |
download | nextcloud-server-39573e602d5e38e4b71b3d197d08798dd9558659.tar.gz nextcloud-server-39573e602d5e38e4b71b3d197d08798dd9558659.zip |
Merge pull request #1978 from nextcloud/remove-send-mail-option
Remove send mail option
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Settings/Admin/SharingTest.php | 56 |
1 files changed, 16 insertions, 40 deletions
diff --git a/tests/lib/Settings/Admin/SharingTest.php b/tests/lib/Settings/Admin/SharingTest.php index d0cda5308f5..122bf2b6caf 100644 --- a/tests/lib/Settings/Admin/SharingTest.php +++ b/tests/lib/Settings/Admin/SharingTest.php @@ -62,55 +62,45 @@ class SharingTest extends TestCase { $this->config ->expects($this->at(3)) ->method('getAppValue') - ->with('core', 'shareapi_allow_mail_notification', 'no') - ->willReturn('no'); - $this->config - ->expects($this->at(4)) - ->method('getAppValue') - ->with('core', 'shareapi_allow_public_notification', 'no') - ->willReturn('no'); - $this->config - ->expects($this->at(5)) - ->method('getAppValue') ->with('core', 'shareapi_allow_public_upload', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(6)) + ->expects($this->at(4)) ->method('getAppValue') ->with('core', 'shareapi_allow_resharing', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(7)) + ->expects($this->at(5)) ->method('getAppValue') ->with('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(8)) + ->expects($this->at(6)) ->method('getAppValue') ->with('core', 'shareapi_enabled', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(9)) + ->expects($this->at(7)) ->method('getAppValue') ->with('core', 'shareapi_default_expire_date', 'no') ->willReturn('no'); $this->config - ->expects($this->at(10)) + ->expects($this->at(8)) ->method('getAppValue') ->with('core', 'shareapi_expire_after_n_days', '7') ->willReturn('7'); $this->config - ->expects($this->at(11)) + ->expects($this->at(9)) ->method('getAppValue') ->with('core', 'shareapi_enforce_expire_date', 'no') ->willReturn('no'); $this->config - ->expects($this->at(12)) + ->expects($this->at(10)) ->method('getAppValue') ->with('core', 'shareapi_exclude_groups', 'no') ->willReturn('no'); $this->config - ->expects($this->at(13)) + ->expects($this->at(11)) ->method('getAppValue') ->with('core', 'shareapi_public_link_disclaimertext', null) ->willReturn('Lorem ipsum'); @@ -121,8 +111,6 @@ class SharingTest extends TestCase { [ 'allowGroupSharing' => 'yes', 'allowLinks' => 'yes', - 'allowMailNotification' => 'no', - 'allowPublicMailNotification' => 'no', 'allowPublicUpload' => 'yes', 'allowResharing' => 'yes', 'allowShareDialogUserEnumeration' => 'yes', @@ -161,55 +149,45 @@ class SharingTest extends TestCase { $this->config ->expects($this->at(3)) ->method('getAppValue') - ->with('core', 'shareapi_allow_mail_notification', 'no') - ->willReturn('no'); - $this->config - ->expects($this->at(4)) - ->method('getAppValue') - ->with('core', 'shareapi_allow_public_notification', 'no') - ->willReturn('no'); - $this->config - ->expects($this->at(5)) - ->method('getAppValue') ->with('core', 'shareapi_allow_public_upload', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(6)) + ->expects($this->at(4)) ->method('getAppValue') ->with('core', 'shareapi_allow_resharing', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(7)) + ->expects($this->at(5)) ->method('getAppValue') ->with('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(8)) + ->expects($this->at(6)) ->method('getAppValue') ->with('core', 'shareapi_enabled', 'yes') ->willReturn('yes'); $this->config - ->expects($this->at(9)) + ->expects($this->at(7)) ->method('getAppValue') ->with('core', 'shareapi_default_expire_date', 'no') ->willReturn('no'); $this->config - ->expects($this->at(10)) + ->expects($this->at(8)) ->method('getAppValue') ->with('core', 'shareapi_expire_after_n_days', '7') ->willReturn('7'); $this->config - ->expects($this->at(11)) + ->expects($this->at(9)) ->method('getAppValue') ->with('core', 'shareapi_enforce_expire_date', 'no') ->willReturn('no'); $this->config - ->expects($this->at(12)) + ->expects($this->at(10)) ->method('getAppValue') ->with('core', 'shareapi_exclude_groups', 'no') ->willReturn('yes'); $this->config - ->expects($this->at(13)) + ->expects($this->at(11)) ->method('getAppValue') ->with('core', 'shareapi_public_link_disclaimertext', null) ->willReturn('Lorem ipsum'); @@ -220,8 +198,6 @@ class SharingTest extends TestCase { [ 'allowGroupSharing' => 'yes', 'allowLinks' => 'yes', - 'allowMailNotification' => 'no', - 'allowPublicMailNotification' => 'no', 'allowPublicUpload' => 'yes', 'allowResharing' => 'yes', 'allowShareDialogUserEnumeration' => 'yes', |