summaryrefslogtreecommitdiff
path: root/tests/units/Model/TaskPositionTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-23 15:39:37 +0100
committerFrederic Guillot <fred@kanboard.net>2015-12-23 15:39:37 +0100
commit4003b122d085b58ad7acb31bafa44121ed94c37f (patch)
tree6d2862618a3dfe950b20220553431acd204682b0 /tests/units/Model/TaskPositionTest.php
parent8ff2032ea3fa49972fe076166c831719131e829d (diff)
Improving performance during task position change (3 times faster than before)
Diffstat (limited to 'tests/units/Model/TaskPositionTest.php')
-rw-r--r--tests/units/Model/TaskPositionTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/Model/TaskPositionTest.php b/tests/units/Model/TaskPositionTest.php
index 42612f44..5f045768 100644
--- a/tests/units/Model/TaskPositionTest.php
+++ b/tests/units/Model/TaskPositionTest.php
@@ -106,7 +106,7 @@ class TaskPositionTest extends Base
$this->assertEquals(1, $tc->create(array('title' => 'Task #1', 'project_id' => 1, 'column_id' => 1)));
$this->assertEquals(2, $tc->create(array('title' => 'Task #2', 'project_id' => 1, 'column_id' => 1)));
- // We move the task 2 to the column 3
+ // We move the task 1 to the column 3
$this->assertTrue($tp->movePosition(1, 1, 3, 1));
// Check tasks position
@@ -235,7 +235,7 @@ class TaskPositionTest extends Base
$this->assertEquals(3, $tc->create(array('title' => 'Task #3', 'project_id' => 1, 'column_id' => 1)));
$this->assertEquals(4, $tc->create(array('title' => 'Task #4', 'project_id' => 1, 'column_id' => 1)));
- // Move the last task to the bottom
+ // Move the first task to the bottom
$this->assertTrue($tp->movePosition(1, 1, 1, 4));
// Check tasks position