mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Use the proper default values
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
5ba33b7574
commit
511eade1d4
2 changed files with 3 additions and 3 deletions
|
|
@ -529,7 +529,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 {
|
||||
|
|
|
|||
|
|
@ -533,11 +533,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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue