Use the proper default values
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
9561a7a1e2
commit
8e4f0f9d17
|
@ -530,7 +530,7 @@ Raw output
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function isPhpMailerUsed(): bool {
|
protected function isPhpMailerUsed(): bool {
|
||||||
return $this->config->getSystemValue('mail_smtpmode') === 'php';
|
return $this->config->getSystemValue('mail_smtpmode', 'smtp') === 'php';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function hasOpcacheLoaded(): bool {
|
protected function hasOpcacheLoaded(): bool {
|
||||||
|
|
|
@ -543,11 +543,11 @@ class CheckSetupControllerTest extends TestCase {
|
||||||
|
|
||||||
$this->config->expects($this->at(0))
|
$this->config->expects($this->at(0))
|
||||||
->method('getSystemValue')
|
->method('getSystemValue')
|
||||||
->with('mail_smtpmode', null)
|
->with('mail_smtpmode', 'smtp')
|
||||||
->will($this->returnValue('php'));
|
->will($this->returnValue('php'));
|
||||||
$this->config->expects($this->at(1))
|
$this->config->expects($this->at(1))
|
||||||
->method('getSystemValue')
|
->method('getSystemValue')
|
||||||
->with('mail_smtpmode', null)
|
->with('mail_smtpmode', 'smtp')
|
||||||
->will($this->returnValue('not-php'));
|
->will($this->returnValue('not-php'));
|
||||||
|
|
||||||
$this->assertTrue($this->invokePrivate($checkSetupController, 'isPhpMailerUsed'));
|
$this->assertTrue($this->invokePrivate($checkSetupController, 'isPhpMailerUsed'));
|
||||||
|
|
Loading…
Reference in New Issue