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);