summaryrefslogtreecommitdiff
path: root/tests/units/SwimlaneTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 17:38:17 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 17:38:17 -0500
commitd6530bd55fdd863f0cf153bc2854fb4e34076316 (patch)
treeca7c42d4bb6a180431cd3fd8a5fc120d44c58fbd /tests/units/SwimlaneTest.php
parentcbac410efa968f501e65e6e25fc293bcc511301c (diff)
Include swimlane in task export
Diffstat (limited to 'tests/units/SwimlaneTest.php')
-rw-r--r--tests/units/SwimlaneTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/units/SwimlaneTest.php b/tests/units/SwimlaneTest.php
index 0c0cdfc5..6247c773 100644
--- a/tests/units/SwimlaneTest.php
+++ b/tests/units/SwimlaneTest.php
@@ -31,6 +31,21 @@ class SwimlaneTest extends Base
$this->assertEquals('', $s->getNameById(23));
}
+ public function testGetList()
+ {
+ $p = new Project($this->container);
+ $s = new Swimlane($this->container);
+
+ $this->assertEquals(1, $p->create(array('name' => 'UnitTest')));
+ $this->assertEquals(1, $s->create(1, 'Swimlane #1'));
+ $this->assertEquals(2, $s->create(1, 'Swimlane #2'));
+
+ $swimlanes = $s->getSwimlanesList(1);
+ $expected = array('Default swimlane', 'Swimlane #1', 'Swimlane #2');
+
+ $this->assertEquals($expected, $swimlanes);
+ }
+
public function testRename()
{
$p = new Project($this->container);