summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-28 22:17:39 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-28 22:17:39 -0400
commitfe3504d8a2c7739df74735e54109403c3dd75619 (patch)
tree084d6eeed779f015f5e8a3f6320bbf544edf767b /tests
parent05fb6553471025af8bb090cd812651816c1c59fc (diff)
Fix postgres issues
Diffstat (limited to 'tests')
-rw-r--r--tests/units/TaskFilterTest.php14
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);