summaryrefslogtreecommitdiff
path: root/tests/units/ActionTaskAssignSpecificUserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/ActionTaskAssignSpecificUserTest.php')
-rw-r--r--tests/units/ActionTaskAssignSpecificUserTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/units/ActionTaskAssignSpecificUserTest.php b/tests/units/ActionTaskAssignSpecificUserTest.php
index de8daf11..8795d5fb 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\TaskFinder;
use Model\Project;
class ActionTaskAssignSpecificUser extends Base
@@ -44,6 +45,7 @@ class ActionTaskAssignSpecificUser extends Base
// We create a task in the first column
$t = new Task($this->registry);
+ $tf = new TaskFinder($this->registry);
$p = new Project($this->registry);
$this->assertEquals(1, $p->create(array('name' => 'test')));
$this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 1)));
@@ -59,7 +61,7 @@ class ActionTaskAssignSpecificUser extends Base
$this->assertTrue($action->execute($event));
// Our task should be assigned to the user 1
- $task = $t->getById(1);
+ $task = $tf->getById(1);
$this->assertNotEmpty($task);
$this->assertEquals(1, $task['owner_id']);
}