diff options
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() |