From 40ca850707b2f7f51d2d9028bcfd218cd966b32f Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 1 Feb 2015 14:19:49 -0500 Subject: Add column description (merge/change pull-request #549) --- tests/units/BoardTest.php | 3 ++- tests/units/TaskStatusTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3