summaryrefslogtreecommitdiff
path: root/tests/units/Model/EmailNotificationTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-03 17:21:29 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-03 17:21:29 -0400
commit260c8515c507b8c339fdbe1a10b0f13792eac09d (patch)
tree39483e9918e1589786144af79b367492f04e2281 /tests/units/Model/EmailNotificationTest.php
parentd7c0fabcb79fd72993cd00fe00d49bc5656bc204 (diff)
Add more unit tests
Diffstat (limited to 'tests/units/Model/EmailNotificationTest.php')
-rw-r--r--tests/units/Model/EmailNotificationTest.php18
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()