/**
* Tests ConfigNamesMapper::hasTranslation().
*/
public function testGetOperations() { $expected =
[ 'translate' =>
[ 'title' => 'Translate',
'url' => Url::
fromRoute('config_translation.item.overview.system.site_information_settings'
),
],
];
$result =
$this->configNamesMapper->
getOperations();
$this->
assertEquals($expected,
$result);
}}/**
* Defines a test mapper class.
*/
class TestConfigNamesMapper extends ConfigNamesMapper
{ /**
* Gets the internal language code of this mapper, if any.
*
* This method is not to be confused with
* ConfigMapperInterface::getLangcode().
*
* @return string|null
* The language code of this mapper if it is set; NULL otherwise.
*/