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