summaryrefslogtreecommitdiff
path: root/tests/units/ProjectTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/ProjectTest.php')
-rw-r--r--tests/units/ProjectTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/ProjectTest.php b/tests/units/ProjectTest.php
index 04e0418b..93cdcf6a 100644
--- a/tests/units/ProjectTest.php
+++ b/tests/units/ProjectTest.php
@@ -6,6 +6,7 @@ use Model\Project;
use Model\ProjectPermission;
use Model\User;
use Model\Task;
+use Model\TaskCreation;
use Model\Acl;
use Model\Board;
@@ -48,7 +49,7 @@ class ProjectTest extends Base
public function testIsLastModified()
{
$p = new Project($this->container);
- $t = new Task($this->container);
+ $tc = new TaskCreation($this->container);
$now = time();
$p->attachEvents();
@@ -61,7 +62,7 @@ class ProjectTest extends Base
sleep(1);
- $this->assertEquals(1, $t->create(array('title' => 'Task #1', 'project_id' => 1)));
+ $this->assertEquals(1, $tc->create(array('title' => 'Task #1', 'project_id' => 1)));
$this->assertTrue($this->container['event']->isEventTriggered(Task::EVENT_CREATE));
$this->assertEquals('Event\ProjectModificationDateListener', $this->container['event']->getLastListenerExecuted());