summaryrefslogtreecommitdiff
path: root/tests/units/Model/TaskProjectMoveModelTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Model/TaskProjectMoveModelTest.php')
-rw-r--r--tests/units/Model/TaskProjectMoveModelTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/units/Model/TaskProjectMoveModelTest.php b/tests/units/Model/TaskProjectMoveModelTest.php
index ed6c0c3c..c4282638 100644
--- a/tests/units/Model/TaskProjectMoveModelTest.php
+++ b/tests/units/Model/TaskProjectMoveModelTest.php
@@ -39,7 +39,14 @@ class TaskProjectMoveModelTest extends Base
$this->assertEquals(2, $projectModel->create(array('name' => 'test2')));
// We create a task
- $this->assertEquals(1, $taskCreationModel->create(array('title' => 'test', 'project_id' => 1, 'owner_id' => 1, 'category_id' => 10, 'position' => 333)));
+ $this->assertEquals(1, $taskCreationModel->create(array(
+ 'title' => 'test',
+ 'project_id' => 1,
+ 'owner_id' => 1,
+ 'category_id' => 10,
+ 'position' => 333,
+ 'priority' => 1,
+ )));
$this->container['dispatcher']->addListener(TaskModel::EVENT_MOVE_PROJECT, array($this, 'onMoveProject'));
@@ -58,6 +65,7 @@ class TaskProjectMoveModelTest extends Base
$this->assertEquals(2, $task['project_id']);
$this->assertEquals(5, $task['column_id']);
$this->assertEquals(1, $task['position']);
+ $this->assertEquals(1, $task['priority']);
$this->assertEquals('test', $task['title']);
}