Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-01 15:28:50 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-01 15:28:50 +0300
commit1ef9473347677d1de7f072e6c0bacbdbfdc622d3 (patch)
tree83f9024485024db1505a92566eac05ce3b92c36a /tests
parentfa402d715677459fe24e23bad09673c1f3f3507b (diff)
Make OCA\Mail\Service\AutoConfig strict
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/Service/Autoconfig/SmtpServerDetectorTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Service/Autoconfig/SmtpServerDetectorTest.php b/tests/Service/Autoconfig/SmtpServerDetectorTest.php
index 9c1fe6e1a..d4dd2a17e 100644
--- a/tests/Service/Autoconfig/SmtpServerDetectorTest.php
+++ b/tests/Service/Autoconfig/SmtpServerDetectorTest.php
@@ -59,7 +59,7 @@ class SmtpServerDetectorTest extends TestCase {
$this->smtpConnectivityTester->expects($this->once())
->method('test')
->with($this->equalTo($account), $this->equalTo('mx.domain.tld'), $this->equalTo(['user', 'user@domain.tld']))
- ->willReturn($this->createMock(MailAccount::class));
+ ->willReturn(true);
$result = $this->detector->detect($account, $email, $password);