diff options
Diffstat (limited to 'tests/units')
-rw-r--r-- | tests/units/TaskFilterTest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/units/TaskFilterTest.php b/tests/units/TaskFilterTest.php index 80d5ee4c..1ae1e5b8 100644 --- a/tests/units/TaskFilterTest.php +++ b/tests/units/TaskFilterTest.php @@ -14,6 +14,20 @@ use Model\Swimlane; class TaskFilterTest extends Base { + public function testGetGanttbar() + { + $dp = new DateParser($this->container); + $p = new Project($this->container); + $tc = new TaskCreation($this->container); + $tf = new TaskFilter($this->container); + + $this->assertEquals(1, $p->create(array('name' => 'test'))); + $this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'task1'))); + + $this->assertNotEmpty($tf->search('status:open')->toGanttBars()); + $this->assertNotEmpty($p->getGanttBars(array(1))); + } + public function testIcalEventsWithCreatorAndDueDate() { $dp = new DateParser($this->container); |