eZ\Bundle\EzPublishRestBundle\Tests\Functional\LocationTest::testRedirectLocationById PHP Method

testRedirectLocationById() public method

public testRedirectLocationById ( $locationHref )
    public function testRedirectLocationById($locationHref)
    {
        $hrefParts = explode('/', $locationHref);
        $id = array_pop($hrefParts);
        $response = $this->sendHttpRequest($this->createHttpRequest('GET', "/api/ezp/v2/content/locations?id={$id}"));
        self::assertHttpResponseCodeEquals($response, 307);
        self::assertHttpResponseHasHeader($response, 'Location', $locationHref);
    }