summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-18 10:11:07 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-18 10:11:07 -0500
commit948b7fbaaa58c0a825938f7e8bda9a07ec39239b (patch)
tree15eb1d245dac847d92c606fff85c65a7d9e0f79b /tests/units
parentde128dbad860478496a0d655b5eb5c1005ebbabe (diff)
Add mandatory argument "project_id" to API method "updateSwimlane()"
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/Model/SwimlaneModelTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/units/Model/SwimlaneModelTest.php b/tests/units/Model/SwimlaneModelTest.php
index 73cc9e09..7da93f9c 100644
--- a/tests/units/Model/SwimlaneModelTest.php
+++ b/tests/units/Model/SwimlaneModelTest.php
@@ -4,7 +4,6 @@ require_once __DIR__.'/../Base.php';
use Kanboard\Model\ProjectModel;
use Kanboard\Model\TaskCreationModel;
-use Kanboard\Model\TaskFinderModel;
use Kanboard\Model\SwimlaneModel;
class SwimlaneModelTest extends Base
@@ -86,7 +85,7 @@ class SwimlaneModelTest extends Base
$this->assertEquals(1, $projectModel->create(array('name' => 'UnitTest')));
$this->assertEquals(2, $swimlaneModel->create(1, 'Swimlane #1'));
- $this->assertTrue($swimlaneModel->update(array('id' => 2, 'name' => 'foobar')));
+ $this->assertTrue($swimlaneModel->update(2, array('name' => 'foobar')));
$swimlane = $swimlaneModel->getById(2);
$this->assertEquals('foobar', $swimlane['name']);