public testCopyContentType ( $sourceContentTypeHref ) : string | ||
return | string | The copied content type href |
public function testCopyContentType($sourceContentTypeHref)
{
$response = $this->sendHttpRequest($this->createHttpRequest('COPY', $sourceContentTypeHref, '', 'ContentType+json'));
self::assertHttpResponseCodeEquals($response, 201);
self::assertHttpResponseHasHeader($response, 'Location');
$href = $response->getHeader('Location');
$this->addCreatedElement($href);
return $href;
// @todo test identifier (copy_of_<originalBaseIdentifier>_<newTypeId>)
}