diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-19 21:55:02 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-16 12:47:06 +0100 |
commit | e32f1582c76252ae80802c0851a9583504131dff (patch) | |
tree | 247976a9bd3dd9f9549b205ba58a0c0c2e721cc9 /tests/settings | |
parent | dfd70337d6db5e6e15f6763d5e8762f189e9fd71 (diff) | |
download | nextcloud-server-e32f1582c76252ae80802c0851a9583504131dff.tar.gz nextcloud-server-e32f1582c76252ae80802c0851a9583504131dff.zip |
Show more detailed error message
Diffstat (limited to 'tests/settings')
-rw-r--r-- | tests/settings/controller/mailsettingscontrollertest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/settings/controller/mailsettingscontrollertest.php b/tests/settings/controller/mailsettingscontrollertest.php index 84432f656bf..cc25fda52f7 100644 --- a/tests/settings/controller/mailsettingscontrollertest.php +++ b/tests/settings/controller/mailsettingscontrollertest.php @@ -32,6 +32,9 @@ class MailSettingsControllerTest extends \Test\TestCase { ->disableOriginalConstructor()->getMock(); $this->container['MailMessage'] = $this->getMockBuilder('\OCP\Mail\IMessage') ->disableOriginalConstructor()->getMock(); + $this->container['Mailer'] = $this->getMockBuilder('\OC\Mail\Mailer') + ->setMethods(['send']) + ->disableOriginalConstructor()->getMock(); $this->container['Defaults'] = $this->getMockBuilder('\OC_Defaults') ->disableOriginalConstructor()->getMock(); $this->container['DefaultMailAddress'] = 'no-reply@owncloud.com'; |