From 4a2c56b71400de7a044e0a3c05a62ae34c4c4d69 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Wed, 28 Nov 2018 20:06:48 +0100 Subject: Add testcases for pipe mode Signed-off-by: Daniel Kesselberg --- tests/lib/Settings/Admin/MailTest.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/lib/Settings') diff --git a/tests/lib/Settings/Admin/MailTest.php b/tests/lib/Settings/Admin/MailTest.php index 436a7953220..1a1d090418e 100644 --- a/tests/lib/Settings/Admin/MailTest.php +++ b/tests/lib/Settings/Admin/MailTest.php @@ -95,6 +95,11 @@ class MailTest extends TestCase { ->method('getSystemValue') ->with('mail_smtppassword', '') ->willReturn('mypassword'); + $this->config + ->expects($this->at(10)) + ->method('getSystemValue') + ->with('mail_sendmailmode', 'smtp') + ->willReturn('smtp'); $expected = new TemplateResponse( 'settings', @@ -111,6 +116,7 @@ class MailTest extends TestCase { 'mail_smtpauth' => true, 'mail_smtpname' => 'smtp.sender.com', 'mail_smtppassword' => '********', + 'mail_sendmailmode' => 'smtp', ], '' ); -- cgit v1.2.3