Add more unit tests

This commit is contained in:
Frederic Guillot
2015-10-03 17:21:29 -04:00
parent d7c0fabcb7
commit 260c8515c5
7 changed files with 152 additions and 31 deletions

View File

@@ -12,23 +12,6 @@ use Event\TaskEvent;
*/
class TaskStatus extends Base
{
/**
* Return the list of statuses
*
* @access public
* @param boolean $prepend Prepend default value
* @return array
*/
public function getList($prepend = false)
{
$listing = $prepend ? array(-1 => t('All status')) : array();
return $listing + array(
Task::STATUS_OPEN => t('Open'),
Task::STATUS_CLOSED => t('Closed'),
);
}
/**
* Return true if the task is closed
*