diff options
Diffstat (limited to 'tests/units/Helper/MailHelperTest.php')
-rw-r--r-- | tests/units/Helper/MailHelperTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/units/Helper/MailHelperTest.php b/tests/units/Helper/MailHelperTest.php index b2d4ba6e..e871a57d 100644 --- a/tests/units/Helper/MailHelperTest.php +++ b/tests/units/Helper/MailHelperTest.php @@ -32,4 +32,15 @@ class MailHelperTest extends Base $this->assertEquals('me@here', $helper->getMailSenderAddress()); } + + public function testGetTransport() + { + $helper = new MailHelper($this->container); + $this->assertEquals(MAIL_TRANSPORT, $helper->getMailTransport()); + + $this->container['configModel']->save(array('mail_transport' => 'smtp')); + $this->container['memoryCache']->flush(); + + $this->assertEquals('smtp', $helper->getMailTransport()); + } } |