From 3b6c4cd3259619d8b39603a5496c0641f542dda1 Mon Sep 17 00:00:00 2001 From: Jacek Foremski Date: Thu, 17 May 2018 13:36:43 +0200 Subject: [PATCH] EZP-27948: When swapping Locations with the same name and parent, URL aliases are not swapped as well (#2297) * EZP-27948: When swapping Locations with the same name and parent, URL aliases are not swapped as well * Optimized UrlAlias Persistence Handler::getLocationEntryInLanguage * Refactored UrlAlias Persistence Handler::locationSwapped Using internal DTOs instead of multiple variables for readablity --- Repository/Tests/LocationServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Repository/Tests/LocationServiceTest.php b/Repository/Tests/LocationServiceTest.php index df80c7a20..c6978a6e9 100644 --- a/Repository/Tests/LocationServiceTest.php +++ b/Repository/Tests/LocationServiceTest.php @@ -1122,7 +1122,7 @@ public function testSwapLocation() ); $this->assertEquals( $demoDesignLocation->id, - $repository->getURLAliasService()->lookup('/Plain-site')->destination + $repository->getURLAliasService()->lookup('/eZ-Publish-Demo-Design-without-demo-content')->destination ); }