summaryrefslogtreecommitdiff
path: root/tests/units/Notification
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 23:06:51 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 23:06:51 -0400
commitdf57b0f2c8b73959b6bcf237027d1c44670f961e (patch)
treebc8f559a6905c5a0fad6c8ae0a88f7698c39fccc /tests/units/Notification
parent5884c65a02a13dd396525d0b8d1720d1c062a96e (diff)
Simplify mail subject for notifications
Diffstat (limited to 'tests/units/Notification')
-rw-r--r--tests/units/Notification/MailNotificationTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/Notification/MailNotificationTest.php b/tests/units/Notification/MailNotificationTest.php
index 6579d9bc..05f1f882 100644
--- a/tests/units/Notification/MailNotificationTest.php
+++ b/tests/units/Notification/MailNotificationTest.php
@@ -56,7 +56,7 @@ class MailNotificationTest extends Base
'changes' => array()
);
$this->assertNotEmpty($mailNotification->getMailContent($eventName, $eventData));
- $this->assertNotEmpty($mailNotification->getMailSubject($eventName, $eventData));
+ $this->assertStringStartsWith('[test] ', $mailNotification->getMailSubject($eventName, $eventData));
}
}
@@ -84,7 +84,7 @@ class MailNotificationTest extends Base
->with(
$this->equalTo('test@localhost'),
$this->equalTo('admin'),
- $this->equalTo('[test][New task] test (#1)'),
+ $this->equalTo('[test] New task #1: test'),
$this->stringContains('test')
);