|
|
|
@ -172,7 +172,7 @@ class MailerTest extends TestCase { |
|
|
|
$this->config->method('getSystemValue') |
|
|
|
->will($this->returnValueMap([ |
|
|
|
['mail_smtpmode', 'smtp', 'smtp'], |
|
|
|
['mail_smtpstreamoptions', array(), array('foo' => 1)] |
|
|
|
['mail_smtpstreamoptions', [], ['foo' => 1]] |
|
|
|
])); |
|
|
|
$mailer = self::invokePrivate($this->mailer, 'getInstance'); |
|
|
|
$this->assertEquals(1, count($mailer->getTransport()->getStreamOptions())); |
|
|
|
@ -184,7 +184,7 @@ class MailerTest extends TestCase { |
|
|
|
$this->config->method('getSystemValue') |
|
|
|
->will($this->returnValueMap([ |
|
|
|
['mail_smtpmode', 'smtp', 'smtp'], |
|
|
|
['mail_smtpstreamoptions', array(), 'bar'] |
|
|
|
['mail_smtpstreamoptions', [], 'bar'] |
|
|
|
])); |
|
|
|
$mailer = self::invokePrivate($this->mailer, 'getInstance'); |
|
|
|
$this->assertEquals(0, count($mailer->getTransport()->getStreamOptions())); |
|
|
|
|