diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-18 09:42:01 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-18 09:42:01 -0500 |
commit | de128dbad860478496a0d655b5eb5c1005ebbabe (patch) | |
tree | 7fee510e901273472731e8e843981268c593ec40 /tests/integration | |
parent | 0430a09c069134622c0161dc2fb9ba3718a73c0d (diff) |
Remove default swimlane
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/SwimlaneProcedureTest.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/integration/SwimlaneProcedureTest.php b/tests/integration/SwimlaneProcedureTest.php index e64342b4..afd2b3b4 100644 --- a/tests/integration/SwimlaneProcedureTest.php +++ b/tests/integration/SwimlaneProcedureTest.php @@ -10,13 +10,15 @@ class SwimlaneProcedureTest extends BaseProcedureTest public function testAll() { $this->assertCreateTeamProject(); - } - - public function assertGetDefaultSwimlane() - { - $swimlane = $this->app->getDefaultSwimlane($this->projectId); - $this->assertNotEmpty($swimlane); - $this->assertEquals('Default swimlane', $swimlane['default_swimlane']); + $this->assertAddSwimlane(); + $this->assertGetSwimlane(); + $this->assertUpdateSwimlane(); + $this->assertDisableSwimlane(); + $this->assertEnableSwimlane(); + $this->assertGetAllSwimlanes(); + $this->assertGetActiveSwimlane(); + $this->assertRemoveSwimlane(); + $this->assertChangePosition(); } public function assertAddSwimlane() @@ -60,9 +62,10 @@ class SwimlaneProcedureTest extends BaseProcedureTest public function assertGetAllSwimlanes() { $swimlanes = $this->app->getAllSwimlanes($this->projectId); - $this->assertCount(2, $swimlanes); - $this->assertEquals('Another swimlane', $swimlanes[0]['name']); + $this->assertCount(3, $swimlanes); + $this->assertEquals('Default swimlane', $swimlanes[0]['name']); $this->assertEquals('Swimlane 2', $swimlanes[1]['name']); + $this->assertEquals('Another swimlane', $swimlanes[2]['name']); } public function assertGetActiveSwimlane() @@ -86,7 +89,7 @@ class SwimlaneProcedureTest extends BaseProcedureTest $this->assertNotFalse($this->app->addSwimlane($this->projectId, 'Swimlane B')); $swimlanes = $this->app->getAllSwimlanes($this->projectId); - $this->assertCount(3, $swimlanes); + $this->assertCount(4, $swimlanes); $this->assertTrue($this->app->changeSwimlanePosition($this->projectId, $swimlaneId1, 3)); } |