Lemon\RestBundle\Tests\Controller\IndexControllerTest::testIndex PHP Метод

testIndex() публичный Метод

public testIndex ( )
    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);
    }
IndexControllerTest