summaryrefslogtreecommitdiff
path: root/tests/units/Notification/MailNotificationTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-15 20:46:26 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-15 20:46:26 -0400
commit5f82a942c0011bf91947b2c1d627c0907bda0c92 (patch)
tree31dfe2268e237d0fd7ea4586f9c25a365fb54116 /tests/units/Notification/MailNotificationTest.php
parent70104eff1599a46e00a907e8c185f63493f26ecd (diff)
Fix PHP notice when sending overdue notifications
Diffstat (limited to 'tests/units/Notification/MailNotificationTest.php')
-rw-r--r--tests/units/Notification/MailNotificationTest.php5
1 files changed, 5 insertions, 0 deletions
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()