summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-01 11:10:32 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-01 11:10:32 -0500
commitb42830e77d85b684fa8c93dd78d19d80c3b3b7fe (patch)
tree71e232de0b1e99afe1f573c778e8f90bfb79b220 /tests
parentbe4e90e319cf65b368bb866165abc8d1fd4e074f (diff)
Update unit tests
Diffstat (limited to 'tests')
-rw-r--r--tests/units/BoardTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/BoardTest.php b/tests/units/BoardTest.php
index 3a2575b8..48f3b3cc 100644
--- a/tests/units/BoardTest.php
+++ b/tests/units/BoardTest.php
@@ -54,7 +54,7 @@ class BoardTest extends Base
$board = $b->getBoard(1);
$this->assertNotEmpty($board);
$this->assertEquals(1, count($board));
- $this->assertEquals(4, count($board[0]));
+ $this->assertEquals(5, 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]));
@@ -81,7 +81,8 @@ class BoardTest extends Base
$board = $b->getBoard(1);
$this->assertNotEmpty($board);
$this->assertEquals(2, count($board));
- $this->assertEquals(4, count($board[0]));
+ $this->assertEquals(5, count($board[0]));
+ $this->assertTrue(array_key_exists('nb_tasks', $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]));