From 954bed954f6c81cbcdb217966dcc9e008e7dd149 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 4 Sep 2014 20:14:26 -0700 Subject: Task move position refactoring --- tests/functionals/ApiTest.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'tests/functionals') diff --git a/tests/functionals/ApiTest.php b/tests/functionals/ApiTest.php index 6e23fd52..b41db6fc 100644 --- a/tests/functionals/ApiTest.php +++ b/tests/functionals/ApiTest.php @@ -396,23 +396,19 @@ class Api extends PHPUnit_Framework_TestCase $this->assertTrue(is_array($subtasks)); $this->assertEquals(1, count($subtasks)); } -/* - public function testAutomaticActions() + + public function testMoveTaskPosition() { $task = array( - 'title' => 'Task #1', + 'title' => 'Task to move', 'color_id' => 'blue', - 'owner_id' => 0, + 'owner_id' => 1, 'project_id' => 1, 'column_id' => 1, ); $this->assertTrue($this->client->createTask($task)); - $tasks = $this->client->getAllTasks(1, array(1)); - $task = $tasks[count($tasks) - 1]; - $task['column_id'] = 3; - - $this->assertTrue($this->client->updateTask($task)); - }*/ + $this->assertTrue($this->client->moveTaskPosition(1, 2, 3, 1)); + } } -- cgit v1.2.3