Fix postgres issues

This commit is contained in:
Frederic Guillot
2015-08-28 22:17:39 -04:00
parent 05fb655347
commit fe3504d8a2
4 changed files with 19 additions and 4 deletions

View File

@@ -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);