->
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);
} /**
* Tests ConfigNamesMapper::getAddRouteParameters().
*/
public function testGetAddRouteParameters() { $route_match =
new RouteMatch('example',
new Route('/test/{langcode}'
),
['langcode' => 'xx'
]);
$this->configNamesMapper->
populateFromRouteMatch($route_match);