public indexAction ( |
||
$request | ||
Résultat |
public function testIndex() { $request = $this->makeRequest('GET', '/', null); /** @var \Symfony\Component\HttpFoundation\Response $response */ $response = $this->controller->indexAction($request); $data = json_decode($response->getContent()); $this->assertNotEmpty($data); $this->assertEquals("http://localhost/person", $data->person_url); $this->assertEquals("http://localhost/footballTeam", $data->footballTeam_url); }