summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-28 18:57:25 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-28 18:57:25 -0400
commit7af5a923b047f612c02af2fe39a09beb45792f3a (patch)
tree860452d85ee3dbf9298b9307719c31d2965696e8 /tests
parente22985df50d3a0a2ac883c43749542e41e425927 (diff)
Improve date due filter
Diffstat (limited to 'tests')
-rw-r--r--tests/units/TaskFilterTest.php2
1 files changed, 2 insertions, 0 deletions
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();