Helper refactoring
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
|
||||
require_once __DIR__.'/../Base.php';
|
||||
|
||||
use Kanboard\Helper\Task;
|
||||
use Kanboard\Helper\TaskHelper;
|
||||
|
||||
class TaskHelperTest extends Base
|
||||
{
|
||||
public function testSelectPriority()
|
||||
{
|
||||
$helper = new Task($this->container);
|
||||
$helper = new TaskHelper($this->container);
|
||||
$this->assertNotEmpty($helper->selectPriority(array('priority_end' => '3', 'priority_start' => '1', 'priority_default' => '2'), array()));
|
||||
$this->assertEmpty($helper->selectPriority(array('priority_end' => '3', 'priority_start' => '3', 'priority_default' => '2'), array()));
|
||||
}
|
||||
|
||||
public function testFormatPriority()
|
||||
{
|
||||
$helper = new Task($this->container);
|
||||
$helper = new TaskHelper($this->container);
|
||||
|
||||
$this->assertEquals(
|
||||
'<span class="task-board-priority" title="Task priority">P2</span>',
|
||||
|
||||
Reference in New Issue
Block a user