From 7af5a923b047f612c02af2fe39a09beb45792f3a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 28 Jun 2015 18:57:25 -0400 Subject: Improve date due filter --- tests/units/TaskFilterTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/units/TaskFilterTest.php') diff --git a/tests/units/TaskFilterTest.php b/tests/units/TaskFilterTest.php index e509371c..4e2366e5 100644 --- a/tests/units/TaskFilterTest.php +++ b/tests/units/TaskFilterTest.php @@ -38,6 +38,8 @@ class TaskFilterTest extends Base $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'my task title is amazing', 'date_due' => $dp->getTimestampFromIsoFormat('+1 day')))); $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'Bob at work', 'date_due' => $dp->getTimestampFromIsoFormat('-1 day')))); $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'youpi', 'date_due' => $dp->getTimestampFromIsoFormat(time())))); + $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'no due date'))); + $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'due date at 0', 'date_due' => 0))); $tf->search('due:>'.date('Y-m-d')); $tasks = $tf->findAll(); -- cgit v1.2.3