summaryrefslogtreecommitdiff
path: root/tests/units/Helper/TaskHelperTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-26 14:34:03 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-26 14:34:03 -0500
commit9bcf97a6c9110afd62b542b92d07d27f945eda96 (patch)
tree6a31787c7be18204b60968cf18d1649afb759335 /tests/units/Helper/TaskHelperTest.php
parent27328255cd727f188e735c2202d0ee95db265677 (diff)
Project priority is always rendered now
Diffstat (limited to 'tests/units/Helper/TaskHelperTest.php')
-rw-r--r--tests/units/Helper/TaskHelperTest.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/units/Helper/TaskHelperTest.php b/tests/units/Helper/TaskHelperTest.php
index 8609983e..d2bd6ea9 100644
--- a/tests/units/Helper/TaskHelperTest.php
+++ b/tests/units/Helper/TaskHelperTest.php
@@ -11,7 +11,6 @@ class TaskHelperTest extends Base
$helper = new TaskHelper($this->container);
$this->assertNotEmpty($helper->renderPriorityField(array('priority_end' => '1', 'priority_start' => '5', 'priority_default' => '2'), array()));
$this->assertNotEmpty($helper->renderPriorityField(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array()));
- $this->assertEmpty($helper->renderPriorityField(array('priority_end' => '3', 'priority_start' => '3', 'priority_default' => '2'), array()));
}
public function testFormatPriority()
@@ -19,15 +18,13 @@ class TaskHelperTest extends Base
$helper = new TaskHelper($this->container);
$this->assertEquals(
- '<span class="task-board-priority" title="Task priority">P2</span>',
- $helper->formatPriority(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array('priority' => 2))
+ '<span class="task-priority" title="Task priority">P2</span>',
+ $helper->renderPriority(2)
);
$this->assertEquals(
- '<span class="task-board-priority" title="Task priority">-P6</span>',
- $helper->formatPriority(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array('priority' => -6))
+ '<span class="task-priority" title="Task priority">-P6</span>',
+ $helper->renderPriority(-6)
);
-
- $this->assertEmpty($helper->formatPriority(array('priority_end' => '3', 'priority_start' => '3', 'priority_default' => '2'), array()));
}
}