function ConfigEntityMapperTest::testGetOverviewRouteParameters
Same name in other branches
- 9 core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOverviewRouteParameters()
- 8.9.x core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOverviewRouteParameters()
- 10 core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigEntityMapperTest::testGetOverviewRouteParameters()
Tests ConfigEntityMapper::getOverviewRouteParameters().
File
-
core/
modules/ config_translation/ tests/ src/ Unit/ ConfigEntityMapperTest.php, line 155
Class
- ConfigEntityMapperTest
- Tests the functionality provided by the configuration entity mapper.
Namespace
Drupal\Tests\config_translation\UnitCode
public function testGetOverviewRouteParameters() : void {
$entity_type = $this->createMock('Drupal\\Core\\Config\\Entity\\ConfigEntityTypeInterface');
$this->entityTypeManager
->expects($this->once())
->method('getDefinition')
->with('configurable_language')
->willReturn($entity_type);
$this->configEntityMapper
->setEntity($this->entity);
$this->entity
->expects($this->once())
->method('id')
->with()
->willReturn('entity_id');
$result = $this->configEntityMapper
->getOverviewRouteParameters();
$this->assertSame([
'configurable_language' => 'entity_id',
], $result);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.