From cf821e117ce8b937cff7f386a107aaa81ba6bf9b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 26 Dec 2014 17:43:13 -0500 Subject: Add swimlanes --- tests/units/BoardTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/units/BoardTest.php') 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() -- cgit v1.2.3