$this->
assertSame($expected,
$result);
} /**
* Tests ConfigNamesMapper::getEditRouteParameters().
*/
public function testGetEditRouteParameters() { $route_match =
new RouteMatch('example',
new Route('/test/{langcode}'
),
['langcode' => 'xx'
]);
$this->configNamesMapper->
populateFromRouteMatch($route_match);
$expected =
['langcode' => 'xx'
];
$result =
$this->configNamesMapper->
getEditRouteParameters();
$this->
assertSame($expected,
$result);
} /**
* Tests ConfigNamesMapper::getEditRoute().
*/
public function testGetEditRoute() { $expected =
new Route('/admin/config/system/site-information/translate/{langcode}/edit',
[ '_form' => '\Drupal\config_translation\Form\ConfigTranslationEditForm',
'plugin_id' => 'system.site_information_settings',
],