summaryrefslogtreecommitdiff
path: root/tests/units/BoardTest.php
diff options
context:
space:
mode:
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()