summaryrefslogtreecommitdiff
path: root/tests/units/BoardTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-26 17:43:13 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-26 17:43:13 -0500
commitcf821e117ce8b937cff7f386a107aaa81ba6bf9b (patch)
tree6075f4d1c5192f45e8b13479bc67f973b046fdf2 /tests/units/BoardTest.php
parent2b27d986b374923a266c132ac0a67fb515d30d1c (diff)
Add swimlanes
Diffstat (limited to 'tests/units/BoardTest.php')
-rw-r--r--tests/units/BoardTest.php11
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()