eZ\Bundle\EzPublishRestBundle\Tests\Functional\TestCase::getContentLocations PHP Method

getContentLocations() protected method

protected getContentLocations ( string $contentHref ) : array
$contentHref string
return array
    protected function getContentLocations($contentHref)
    {
        $response = $this->sendHttpRequest($this->createHttpRequest('GET', "{$contentHref}/locations", '', 'LocationList+json'));
        self::assertHttpResponseCodeEquals($response, 200);
        $folderLocations = json_decode($response->getContent(), true);
        return $folderLocations;
    }