summaryrefslogtreecommitdiff
path: root/tests/units/ActionTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-08-30 22:35:50 -0800
committerFrédéric Guillot <fred@kanboard.net>2014-08-30 22:35:50 -0800
commit7e44dee903015399e221cdda52e540e75c2484f5 (patch)
tree48ddc68daa00b857bde78be9b6bd5ef5dbf36e5d /tests/units/ActionTest.php
parent9e36f84fbc672e8d63a189c6c6365a6eca97f718 (diff)
Move a task to another project
Diffstat (limited to 'tests/units/ActionTest.php')
-rw-r--r--tests/units/ActionTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/units/ActionTest.php b/tests/units/ActionTest.php
index 8108767d..b6528333 100644
--- a/tests/units/ActionTest.php
+++ b/tests/units/ActionTest.php
@@ -84,7 +84,7 @@ class ActionTest extends Base
$this->assertEquals(1, $t1['column_id']);
// We move our task
- $task->move(1, 4, 1);
+ $task->movePosition(1, 4, 1);
$this->assertTrue($this->registry->event->isEventTriggered(Task::EVENT_MOVE_COLUMN));
$this->assertTrue($this->registry->event->isEventTriggered(Task::EVENT_UPDATE));
@@ -152,8 +152,8 @@ class ActionTest extends Base
$this->assertEquals('yellow', $t1['color_id']);
// We move our tasks
- $task->move(1, 1, 1); // task #1 to position 1
- $task->move(2, 1, 0); // task #2 to position 0
+ $task->movePosition(1, 1, 1); // task #1 to position 1
+ $task->movePosition(2, 1, 0); // task #2 to position 0
$this->assertTrue($this->registry->event->isEventTriggered(Task::EVENT_MOVE_POSITION));
@@ -223,7 +223,7 @@ class ActionTest extends Base
$this->assertEquals(1, $t1['project_id']);
// We move our task
- $task->move(1, 4, 1);
+ $task->movePosition(1, 4, 1);
$this->assertTrue($this->registry->event->isEventTriggered(Task::EVENT_CLOSE));
$this->assertTrue($this->registry->event->isEventTriggered(Task::EVENT_MOVE_COLUMN));