summaryrefslogtreecommitdiff
path: root/tests/units/TaskExportTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-22 10:05:44 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-22 10:05:44 -0500
commit15038cdb10f8c691edc7980fd1aed32dcbed3f9f (patch)
treeebdf873e5c65616c3fd36ea2c7a449da52a61877 /tests/units/TaskExportTest.php
parent8f0e544cd91b24423951bbb5d3f3be0950a63abe (diff)
Move task creation to a seperate class
Diffstat (limited to 'tests/units/TaskExportTest.php')
-rw-r--r--tests/units/TaskExportTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/TaskExportTest.php b/tests/units/TaskExportTest.php
index a7faa52a..fc080c0a 100644
--- a/tests/units/TaskExportTest.php
+++ b/tests/units/TaskExportTest.php
@@ -3,6 +3,7 @@
require_once __DIR__.'/Base.php';
use Model\Task;
+use Model\TaskCreation;
use Model\TaskExport;
use Model\Project;
use Model\Category;
@@ -12,7 +13,7 @@ class TaskExportTest extends Base
{
public function testExport()
{
- $t = new Task($this->container);
+ $tc = new TaskCreation($this->container);
$p = new Project($this->container);
$c = new Category($this->container);
$e = new TaskExport($this->container);
@@ -36,7 +37,7 @@ class TaskExportTest extends Base
'score' => rand(0, 21)
);
- $this->assertEquals($i, $t->create($task));
+ $this->assertEquals($i, $tc->create($task));
}
$rows = $e->export(1, strtotime('-1 day'), strtotime('+1 day'));