public testCopySubtree ( $locationHref ) : string | ||
return | string | the created location's href |
public function testCopySubtree($locationHref)
{
$request = $this->createHttpRequest('COPY', $locationHref);
$request->addHeader('Destination: /api/ezp/v2/content/locations/1/43');
$response = $this->sendHttpRequest($request);
self::assertHttpResponseCodeEquals($response, 201);
self::assertHttpResponseHasHeader($response, 'Location');
return $response->getHeader('Location');
}