$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);
$expected =
['langcode' => 'xx'
];
$result =
$this->configNamesMapper->
getAddRouteParameters();
$this->
assertSame($expected,
$result);
} /**
* Tests ConfigNamesMapper::getAddRoute().
*/
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',
],