summaryrefslogtreecommitdiff
path: root/tests/units/Model/TaskProjectDuplicationModelTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-03 10:45:34 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-03 10:45:34 -0400
commitd975a3ac45df8515a86ab656d1a48d85c9f83c27 (patch)
tree69b5dcaca9895d7cc2dcce4ba50b1ee8aca2b38b /tests/units/Model/TaskProjectDuplicationModelTest.php
parent9eb43dd3fce9217bbb0563850e084655a041ca4e (diff)
Added more unit tests for task priority duplication
Diffstat (limited to 'tests/units/Model/TaskProjectDuplicationModelTest.php')
-rw-r--r--tests/units/Model/TaskProjectDuplicationModelTest.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/units/Model/TaskProjectDuplicationModelTest.php b/tests/units/Model/TaskProjectDuplicationModelTest.php
index 798257ba..9ff33bc1 100644
--- a/tests/units/Model/TaskProjectDuplicationModelTest.php
+++ b/tests/units/Model/TaskProjectDuplicationModelTest.php
@@ -31,7 +31,14 @@ class TaskProjectDuplicationModelTest extends Base
$this->assertNotFalse($categoryModel->create(array('name' => 'Category #1', 'project_id' => 1)));
$this->assertTrue($categoryModel->exists(1));
- $this->assertEquals(1, $taskCreationModel->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'owner_id' => 1, 'category_id' => 1)));
+ $this->assertEquals(1, $taskCreationModel->create(array(
+ 'title' => 'test',
+ 'project_id' => 1,
+ 'column_id' => 2,
+ 'owner_id' => 1,
+ 'category_id' => 1,
+ 'priority' => 3,
+ )));
$this->container['dispatcher']->addListener(TaskModel::EVENT_CREATE_UPDATE, function () {});
$this->container['dispatcher']->addListener(TaskModel::EVENT_CREATE, function () {});
@@ -52,6 +59,7 @@ class TaskProjectDuplicationModelTest extends Base
$this->assertEquals(6, $task['column_id']);
$this->assertEquals(1, $task['position']);
$this->assertEquals(2, $task['project_id']);
+ $this->assertEquals(3, $task['priority']);
$this->assertEquals('test', $task['title']);
}