Permalink
Browse files

Merge branch '7.2'

  • Loading branch information...
alongosz committed Sep 11, 2018
2 parents bc9536e + afe64eb commit 895cca06576ac0eb88ff4206c45c0035d1661741
@@ -126,7 +126,7 @@ public function testCopySubtree($locationHref)
['Destination' => '/api/ezp/v2/content/locations/1/43']
);
$response = $this->sendHttpRequest($request);
$this->addCreatedElement($response->getHeader('Location'));
$this->addCreatedElement($response->getHeaderLine('Location'));
self::assertHttpResponseCodeEquals($response, 201);
self::assertHttpResponseHasHeader($response, 'Location');
@@ -895,8 +895,14 @@ private function assertAliasNotExists(URLAliasService $urlAliasService, $urlPath
/**
* Get Test Double for TrashItem for exception testing and similar.
*
* @param int $trashId
* @param int $contentId
* @param int $parentLocationId
*
* @return \eZ\Publish\API\Repository\Values\Content\TrashItem
*/
private function getTrashItemDouble(int $trashId, int $contentId = 44, int $parentLocationId = 2): TrashItem
private function getTrashItemDouble(int $trashId, int $contentId = 44, int $parentLocationId = 2): APITrashItem
{
return new TrashItem([
'id' => $trashId,

0 comments on commit 895cca0

Please sign in to comment.