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'];
}