diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-02 20:58:34 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-02 20:58:34 -0400 |
commit | a27057dd6fbf59e7e88ac19494573a5415d2707e (patch) | |
tree | 54d343d06cef9de6473965ff20f2405812594902 /tests/units/Helper/MailHelperTest.php | |
parent | 523e0aad7ea6682f310fc26e80633344f414de7a (diff) |
Expose to the user interface the email sender address
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 9975dd29..b2d4ba6e 100644 --- a/tests/units/Helper/MailHelperTest.php +++ b/tests/units/Helper/MailHelperTest.php @@ -21,4 +21,15 @@ class MailHelperTest extends Base $this->assertEquals('Test', $helper->filterSubject('RE: Test')); $this->assertEquals('Test', $helper->filterSubject('FW: Test')); } + + public function testGetSenderAddress() + { + $helper = new MailHelper($this->container); + $this->assertEquals('notifications@kanboard.local', $helper->getMailSenderAddress()); + + $this->container['configModel']->save(array('mail_sender_address' => 'me@here')); + $this->container['memoryCache']->flush(); + + $this->assertEquals('me@here', $helper->getMailSenderAddress()); + } } |