summaryrefslogtreecommitdiff
path: root/tests/units/Helper
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Helper')
-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()));
}
}