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/WebNotificationTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/units/Model/WebNotificationTest.php') diff --git a/tests/units/Model/WebNotificationTest.php b/tests/units/Model/WebNotificationTest.php index 0b9dcb17..fffeb475 100644 --- a/tests/units/Model/WebNotificationTest.php +++ b/tests/units/Model/WebNotificationTest.php @@ -52,6 +52,9 @@ class WebNotificationTest extends Base $this->assertNotEmpty($title); } + + $this->assertNotEmpty($wn->getTitleFromEvent(Task::EVENT_OVERDUE, array('tasks' => array(array('id' => 1))))); + $this->assertNotEmpty($wn->getTitleFromEvent('unkown', array())); } public function testHasNotification() -- cgit v1.2.3