Simplify mail subject for notifications

This commit is contained in:
Frederic Guillot
2016-07-23 23:06:51 -04:00
parent 5884c65a02
commit df57b0f2c8
2 changed files with 10 additions and 74 deletions

View File

@@ -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')
);