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]); }
/** * @depends testCreateNewBoard * @param Models\Board $board */ public function testBoardSubscribe(Models\Board $board) { $this->assertEquals(0, $board->subscription_count); $this->boardService->subscribeUser($board, $this->randomBoardPoolUser()); $this->assertEquals(1, $board->subscription_count); }