public function showBoard($board)
 {
     $board = $this->boardService->getBoard($board);
     if (!$board instanceof Models\Board) {
         $this->slim->response()->isNotFound();
     }
     $threads = $this->threadService->getThreads($board);
     $this->slim->render('boards/display.phtml', ['board' => $board, 'threads' => $threads]);
 }
Beispiel #2
0
 /**
  * @depends testCreateNewBoard
  * @param Models\Board $board
  */
 public function testGetBoard(Models\Board $board)
 {
     $this->assertEquals($board->board_id, $this->boardService->getBoard($board->name)->board_id);
 }