public function testGetAddRoute() { $expected =
new Route('/admin/config/system/site-information/translate/{langcode}/add',
[ '_form' => '\Drupal\config_translation\Form\ConfigTranslationAddForm',
'plugin_id' => 'system.site_information_settings',
],
[ '_config_translation_form_access' => 'TRUE',
] );
$result =
$this->configNamesMapper->
getAddRoute();
$this->
assertSame(serialize($expected),
serialize($result));
} /**
* Tests ConfigNamesMapper::getEditRouteName().
*/
public function testGetEditRouteName() { $result =
$this->configNamesMapper->
getEditRouteName();
$expected = 'config_translation.item.edit.' .
$this->pluginDefinition
['base_route_name'
];
$this->
assertSame($expected,
$result);
}