diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 7c26ed5..50e2712 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -162,8 +162,8 @@ public function testGetBaseRoute() { */ public function testGetBasePath() { $this->urlGenerator->expects($this->once()) - ->method('generateFromRoute') - ->with('system.site_information_settings', [], []) + ->method('getPathFromRoute') + ->with('system.site_information_settings', []) ->willReturn('/admin/config/system/site-information'); $result = $this->configNamesMapper->getBasePath(); $this->assertSame('/admin/config/system/site-information', $result); @@ -208,8 +208,8 @@ public function testGetOverviewRoute() { */ public function testGetOverviewPath() { $this->urlGenerator->expects($this->once()) - ->method('generateFromRoute') - ->with('config_translation.item.overview.system.site_information_settings', [], []) + ->method('getPathFromRoute') + ->with('config_translation.item.overview.system.site_information_settings', []) ->willReturn('/admin/config/system/site-information/translate'); $result = $this->configNamesMapper->getOverviewPath();