Improve unit tests

This commit is contained in:
Frederic Guillot
2015-09-05 23:30:56 -04:00
parent 94b38dd94b
commit 710f2c7bb0
72 changed files with 281 additions and 151 deletions

View File

@@ -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)));
}

View File

@@ -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]))).')';