From 260c8515c507b8c339fdbe1a10b0f13792eac09d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Oct 2015 17:21:29 -0400 Subject: Add more unit tests --- tests/units/Model/EmailNotificationTest.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'tests/units/Model/EmailNotificationTest.php') 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() -- cgit v1.2.3