diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-26 17:43:13 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-26 17:43:13 -0500 |
commit | cf821e117ce8b937cff7f386a107aaa81ba6bf9b (patch) | |
tree | 6075f4d1c5192f45e8b13479bc67f973b046fdf2 /tests/units/BoardTest.php | |
parent | 2b27d986b374923a266c132ac0a67fb515d30d1c (diff) |
Add swimlanes
Diffstat (limited to 'tests/units/BoardTest.php')
-rw-r--r-- | tests/units/BoardTest.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/units/BoardTest.php b/tests/units/BoardTest.php index a7de34bd..866d3bab 100644 --- a/tests/units/BoardTest.php +++ b/tests/units/BoardTest.php @@ -48,11 +48,14 @@ class BoardTest extends Base $this->assertEquals(1, $p->create(array('name' => 'UnitTest1'))); - $board = $b->get(1); + $board = $b->getBoard(1); $this->assertNotEmpty($board); - $this->assertEquals(4, count($board)); - $this->assertTrue(array_key_exists('tasks', $board[2])); - $this->assertTrue(array_key_exists('title', $board[2])); + $this->assertEquals(1, count($board)); + $this->assertEquals(4, count($board[0])); + $this->assertTrue(array_key_exists('name', $board[0])); + $this->assertTrue(array_key_exists('columns', $board[0])); + $this->assertTrue(array_key_exists('tasks', $board[0]['columns'][2])); + $this->assertTrue(array_key_exists('title', $board[0]['columns'][2])); } public function testGetColumn() |