summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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);