]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the proper default values 12401/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 19 Nov 2018 09:57:51 +0000 (10:57 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 19 Nov 2018 09:57:51 +0000 (10:57 +0100)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
settings/Controller/CheckSetupController.php
tests/Settings/Controller/CheckSetupControllerTest.php

index cc9cb17388ec314e82005216f8e4f663c3e4bd17..ba56c72dccf67513632f264bc3c8c5d7f713a634 100644 (file)
@@ -530,7 +530,7 @@ Raw output
        }
 
        protected function isPhpMailerUsed(): bool {
-               return $this->config->getSystemValue('mail_smtpmode') === 'php';
+               return $this->config->getSystemValue('mail_smtpmode', 'smtp') === 'php';
        }
 
        protected function hasOpcacheLoaded(): bool {
index 617685d6196a9fbf3f7c52e53cc13293eb121809..ff565f3734bd0e0f507dda19f490e594dc93e063 100644 (file)
@@ -543,11 +543,11 @@ class CheckSetupControllerTest extends TestCase {
 
                $this->config->expects($this->at(0))
                        ->method('getSystemValue')
-                       ->with('mail_smtpmode', null)
+                       ->with('mail_smtpmode', 'smtp')
                        ->will($this->returnValue('php'));
                $this->config->expects($this->at(1))
                        ->method('getSystemValue')
-                       ->with('mail_smtpmode', null)
+                       ->with('mail_smtpmode', 'smtp')
                        ->will($this->returnValue('not-php'));
 
                $this->assertTrue($this->invokePrivate($checkSetupController, 'isPhpMailerUsed'));