diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-03 17:21:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-03 17:21:29 -0400 |
commit | 260c8515c507b8c339fdbe1a10b0f13792eac09d (patch) | |
tree | 39483e9918e1589786144af79b367492f04e2281 /tests/units/Model/EmailNotificationTest.php | |
parent | d7c0fabcb79fd72993cd00fe00d49bc5656bc204 (diff) |
Add more unit tests
Diffstat (limited to 'tests/units/Model/EmailNotificationTest.php')
-rw-r--r-- | tests/units/Model/EmailNotificationTest.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/units/Model/EmailNotificationTest.php b/tests/units/Model/EmailNotificationTest.php index 45613acc..7193f923 100644 --- a/tests/units/Model/EmailNotificationTest.php +++ b/tests/units/Model/EmailNotificationTest.php @@ -50,17 +50,15 @@ class EmailNotificationTest extends Base 'file' => $file, 'changes' => array()) )); - } - } - - public function testGetEmailSubject() - { - $en = new EmailNotification($this->container); - $this->assertEquals( - '[test][Task opened] blah (#2)', - $en->getMailSubject(Task::EVENT_OPEN, array('task' => array('id' => 2, 'title' => 'blah', 'project_name' => 'test'))) - ); + $this->assertNotEmpty($en->getMailSubject($event, array( + 'task' => $task, + 'comment' => $comment, + 'subtask' => $subtask, + 'file' => $file, + 'changes' => array()) + )); + } } public function testSendWithEmailAddress() |