/**
* Tests ConfigNamesMapper::getOverviewPath().
*/
public function testGetOverviewPath() { $this->urlGenerator->
expects($this->
once()) ->
method('getPathFromRoute'
) ->
with('config_translation.item.overview.system.site_information_settings',
[]) ->
willReturn('/admin/config/system/site-information/translate'
);
$result =
$this->configNamesMapper->
getOverviewPath();
$this->
assertSame('/admin/config/system/site-information/translate',
$result);
} /**
* Tests ConfigNamesMapper::getAddRouteName().
*/
public function testGetAddRouteName() { $result =
$this->configNamesMapper->
getAddRouteName();
$expected = 'config_translation.item.add.' .
$this->pluginDefinition
['base_route_name'
];
$this->
assertSame($expected,
$result);
}