diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-18 10:11:07 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-18 10:11:07 -0500 |
commit | 948b7fbaaa58c0a825938f7e8bda9a07ec39239b (patch) | |
tree | 15eb1d245dac847d92c606fff85c65a7d9e0f79b /tests | |
parent | de128dbad860478496a0d655b5eb5c1005ebbabe (diff) |
Add mandatory argument "project_id" to API method "updateSwimlane()"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/SwimlaneProcedureTest.php | 2 | ||||
-rw-r--r-- | tests/units/Model/SwimlaneModelTest.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/integration/SwimlaneProcedureTest.php b/tests/integration/SwimlaneProcedureTest.php index afd2b3b4..a3c2397a 100644 --- a/tests/integration/SwimlaneProcedureTest.php +++ b/tests/integration/SwimlaneProcedureTest.php @@ -37,7 +37,7 @@ class SwimlaneProcedureTest extends BaseProcedureTest public function assertUpdateSwimlane() { - $this->assertTrue($this->app->updateSwimlane($this->swimlaneId, 'Another swimlane')); + $this->assertTrue($this->app->updateSwimlane($this->projectId, $this->swimlaneId, 'Another swimlane')); $swimlane = $this->app->getSwimlaneById($this->swimlaneId); $this->assertEquals('Another swimlane', $swimlane['name']); 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']); |