Skip to content

Commit

Permalink
Merge branch '6.13' into 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Sep 11, 2018
2 parents 4d531c8 + 87c44b1 commit afe64eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -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');
Expand Down
8 changes: 7 additions & 1 deletion eZ/Publish/API/Repository/Tests/TrashServiceTest.php
Expand Up @@ -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,
Expand Down

0 comments on commit afe64eb

Please sign in to comment.