Improve unit tests
This commit is contained in:
@@ -327,7 +327,7 @@ class Board extends Base
|
||||
*/
|
||||
public function swimlane()
|
||||
{
|
||||
$project = $this->getProject();
|
||||
$this->getProject();
|
||||
$swimlane = $this->swimlane->getById($this->request->getIntegerParam('swimlane_id'));
|
||||
$this->response->html($this->template->render('board/tooltip_description', array('task' => $swimlane)));
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class Doc extends Base
|
||||
{
|
||||
$url = $this->helper->url;
|
||||
$data = file_get_contents($filename);
|
||||
list($title,, $content) = explode("\n", $data, 3);
|
||||
list($title,) = explode("\n", $data, 2);
|
||||
|
||||
$replaceUrl = function (array $matches) use ($url) {
|
||||
return '('.$url->to('doc', 'show', array('file' => str_replace('.markdown', '', $matches[1]))).')';
|
||||
|
||||
Reference in New Issue
Block a user