eZ\Bundle\EzPublishRestBundle\Tests\Functional\ContentTypeTest::testContentTypeLoadFieldDefinitionList PHP Method

testContentTypeLoadFieldDefinitionList() public method

public testContentTypeLoadFieldDefinitionList ( $contentTypeHref ) : string
return string the href of the first field definition in the list
    public function testContentTypeLoadFieldDefinitionList($contentTypeHref)
    {
        $response = $this->sendHttpRequest($this->createHttpRequest('GET', "{$contentTypeHref}/fieldDefinitions", '', 'FieldDefinitionList+json'));
        self::assertHttpResponseCodeEquals($response, 200);
        $data = json_decode($response->getContent(), true);
        return $data['FieldDefinitions']['FieldDefinition'][0]['_href'];
    }