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(array('project_id' => 1, 'name' => 'Swimlane #1'))); $this->assertEquals(2, $s->create(array('project_id' => 1, 'name' => 'Swimlane #2'))); $swimlanes = $s->getList(1); $expected = array('Default swimlane', 'Swimlane #1', 'Swimlane #2'); $this->assertEquals($expected, $swimlanes); }