From 9bcf97a6c9110afd62b542b92d07d27f945eda96 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 26 Feb 2017 14:34:03 -0500 Subject: Project priority is always rendered now --- tests/units/Helper/TaskHelperTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/units/Helper/TaskHelperTest.php') 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( - 'P2', - $helper->formatPriority(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array('priority' => 2)) + 'P2', + $helper->renderPriority(2) ); $this->assertEquals( - '-P6', - $helper->formatPriority(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array('priority' => -6)) + '-P6', + $helper->renderPriority(-6) ); - - $this->assertEmpty($helper->formatPriority(array('priority_end' => '3', 'priority_start' => '3', 'priority_default' => '2'), array())); } } -- cgit v1.2.3