public function testGetBoards() { $boards = $this->boardService->getBoards(); $this->assertTrue(is_array($boards)); $this->assertGreaterThanOrEqual(1, count($boards)); $this->assertContainsOnlyInstancesOf("TigerKit\\Models\\Board", $boards); }
public function listBoards() { $boards = $this->boardService->getBoards(); $this->slim->render('boards/list.phtml', ['boards' => $boards]); }