summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-01 14:19:49 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-01 14:19:49 -0500
commit40ca850707b2f7f51d2d9028bcfd218cd966b32f (patch)
tree208af425a604261fce0d6173a57b656ab2c34f3d /tests
parentb42830e77d85b684fa8c93dd78d19d80c3b3b7fe (diff)
Add column description (merge/change pull-request #549)
Diffstat (limited to 'tests')
-rw-r--r--tests/units/BoardTest.php3
-rw-r--r--tests/units/TaskStatusTest.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/units/BoardTest.php b/tests/units/BoardTest.php
index 48f3b3cc..23276718 100644
--- a/tests/units/BoardTest.php
+++ b/tests/units/BoardTest.php
@@ -206,7 +206,7 @@ class BoardTest extends Base
$this->assertEquals(1, $p->create(array('name' => 'UnitTest1')));
$this->assertNotFalse($b->addColumn(1, 'another column'));
- $this->assertNotFalse($b->addColumn(1, 'one more', 3));
+ $this->assertNotFalse($b->addColumn(1, 'one more', 3, 'one more description'));
$columns = $b->getColumns(1);
$this->assertTrue(is_array($columns));
@@ -219,6 +219,7 @@ class BoardTest extends Base
$this->assertEquals('one more', $columns[5]['title']);
$this->assertEquals(3, $columns[5]['task_limit']);
$this->assertEquals(6, $columns[5]['position']);
+ $this->assertEquals('one more description', $columns[5]['description']);
}
public function testMoveColumns()
diff --git a/tests/units/TaskStatusTest.php b/tests/units/TaskStatusTest.php
index b1c3f695..410e4c36 100644
--- a/tests/units/TaskStatusTest.php
+++ b/tests/units/TaskStatusTest.php
@@ -54,7 +54,7 @@ class TaskStatusTest extends Base
$this->assertNotEmpty($task);
$this->assertEquals(Task::STATUS_OPEN, $task['is_active']);
$this->assertEquals(0, $task['date_completed']);
- $this->assertEquals(time(), $task['date_modification']);
+ $this->assertEquals(time(), $task['date_modification'], 1);
$called = $this->container['dispatcher']->getCalledListeners();
$this->assertArrayHasKey('task.close.TaskStatusTest::onTaskClose', $called);