function ConfigNamesMapperTest::setUp
Same name and namespace in other branches
- 11.x core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::setUp()
- 10 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::setUp()
- 9 core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::setUp()
- 8.9.x core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php \Drupal\Tests\config_translation\Unit\ConfigNamesMapperTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ config_translation/ tests/ src/ Unit/ ConfigNamesMapperTest.php, line 92
Class
- ConfigNamesMapperTest
- Tests the functionality provided by the configuration names mapper.
Namespace
Drupal\Tests\config_translation\UnitCode
protected function setUp() : void {
parent::setUp();
$this->routeProvider = $this->createStub(RouteProviderInterface::class);
$this->pluginDefinition = [
'class' => '\\Drupal\\config_translation\\ConfigNamesMapper',
'base_route_name' => 'system.site_information_settings',
'title' => 'System information',
'names' => [
'system.site',
],
'weight' => 42,
];
$this->typedConfigManager = $this->createStub(TypedConfigManagerInterface::class);
$this->localeConfigManager = $this->createStub(LocaleConfigManager::class);
$this->configMapperManager = $this->createStub(ConfigMapperManagerInterface::class);
$this->baseRoute = new Route('/admin/config/system/site-information');
$this->configNamesMapper = new TestConfigNamesMapper('system.site_information_settings', $this->pluginDefinition, $this->getConfigFactoryStub(), $this->typedConfigManager, $this->localeConfigManager, $this->configMapperManager, $this->routeProvider, $this->getStringTranslationStub(), $this->createStub(LanguageManagerInterface::class), $this->createStub(EventDispatcherInterface::class));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.