public function testGetRecentGamesNonAvailable() { $this->expectForGetRecentGames([]); $gameDetailDtos = $this->gameService->getRecentGames(); $this->assertTrue(is_array($gameDetailDtos), 'return value is an array'); $this->assertCount(0, $gameDetailDtos, 'the array is empty'); }
/** * @return Response */ private function getIndexResponse(FormInterface $form) { $games = $this->gameService->getRecentGames(); return $this->render('game/game-index.html.twig', ['form' => $form->createView(), 'games' => $games]); }