diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 10:05:44 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-22 10:05:44 -0500 |
commit | 15038cdb10f8c691edc7980fd1aed32dcbed3f9f (patch) | |
tree | ebdf873e5c65616c3fd36ea2c7a449da52a61877 /tests/units/ActionTaskAssignSpecificUserTest.php | |
parent | 8f0e544cd91b24423951bbb5d3f3be0950a63abe (diff) |
Move task creation to a seperate class
Diffstat (limited to 'tests/units/ActionTaskAssignSpecificUserTest.php')
-rw-r--r-- | tests/units/ActionTaskAssignSpecificUserTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/ActionTaskAssignSpecificUserTest.php b/tests/units/ActionTaskAssignSpecificUserTest.php index cdb29a78..07fa1e25 100644 --- a/tests/units/ActionTaskAssignSpecificUserTest.php +++ b/tests/units/ActionTaskAssignSpecificUserTest.php @@ -3,6 +3,7 @@ require_once __DIR__.'/Base.php'; use Model\Task; +use Model\TaskCreation; use Model\TaskFinder; use Model\Project; @@ -44,11 +45,11 @@ class ActionTaskAssignSpecificUser extends Base $action->setParam('user_id', 1); // We create a task in the first column - $t = new Task($this->container); + $tc = new TaskCreation($this->container); $tf = new TaskFinder($this->container); $p = new Project($this->container); $this->assertEquals(1, $p->create(array('name' => 'test'))); - $this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 1))); + $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 1))); // We create an event to move the task to the 2nd column $event = array( |