function ConfigEntityMapperTest::testGetOperations
Same name in other branches
- 9 core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOperations()
- 10 core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOperations()
- 11.x core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOperations()
Tests ConfigEntityMapper::getOperations().
File
-
core/
modules/ config_translation/ tests/ src/ Unit/ ConfigEntityMapperTest.php, line 215
Class
- ConfigEntityMapperTest
- Tests the functionality provided by the configuration entity mapper.
Namespace
Drupal\Tests\config_translation\UnitCode
public function testGetOperations() {
$result = $this->configEntityMapper
->getOperations();
$expected = [
'list' => [
'title' => 'List',
'url' => Url::fromRoute('config_translation.entity_list', [
'mapper_id' => 'configurable_language',
]),
],
];
$this->assertEquals($expected, $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.