summaryrefslogtreecommitdiffstats
path: root/tests/settings
diff options
context:
space:
mode:
Diffstat (limited to 'tests/settings')
-rw-r--r--tests/settings/controller/mailsettingscontrollertest.php3
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';