From 1496a6f9748758735ce64c12112dbb6e724b7e2b Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Wed, 25 Oct 2023 11:59:03 +0200 Subject: [PATCH] IBX-3957: Applied review remarks --- eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php b/eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php index d1f36a58f1..ce9cdd6c03 100644 --- a/eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php +++ b/eZ/Publish/API/Repository/Tests/URLAliasServiceTest.php @@ -1615,8 +1615,8 @@ public function testRenamingParentContentDoesntBreakChildAlias(): void // 2. Create child folder $child = $this->createFolder([$languageCode => 'b'], $folderLocationId); - $childLocationId = $child->contentInfo->getMainLocationId(); - $childLocation = $locationService->loadLocation($childLocationId); + $childLocation = $child->getVersionInfo()->getContentInfo()->getMainLocation(); + $childLocationId = $childLocation->id; // 3. Create custom URL alias for child folder $urlAliasService->createUrlAlias($childLocation, '/c/b', $languageCode);