From 5f82a942c0011bf91947b2c1d627c0907bda0c92 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 15 Aug 2016 20:46:26 -0400 Subject: Fix PHP notice when sending overdue notifications --- tests/units/Notification/MailNotificationTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/units/Notification/MailNotificationTest.php b/tests/units/Notification/MailNotificationTest.php index 05f1f882..93eeef0c 100644 --- a/tests/units/Notification/MailNotificationTest.php +++ b/tests/units/Notification/MailNotificationTest.php @@ -58,6 +58,11 @@ class MailNotificationTest extends Base $this->assertNotEmpty($mailNotification->getMailContent($eventName, $eventData)); $this->assertStringStartsWith('[test] ', $mailNotification->getMailSubject($eventName, $eventData)); } + + $this->assertStringStartsWith('[Test1, Test2] ', $mailNotification->getMailSubject(TaskModel::EVENT_OVERDUE, array( + 'tasks' => array(array('id' => 123), array('id' => 456)), + 'project_name' => 'Test1, Test2', + ))); } public function testSendWithEmailAddress() -- cgit v1.2.3