protected function OverriddenConfigImportTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/tests/src/Kernel/OverriddenConfigImportTest.php \Drupal\Tests\language\Kernel\OverriddenConfigImportTest::setUp()
- 9 core/modules/language/tests/src/Kernel/OverriddenConfigImportTest.php \Drupal\Tests\language\Kernel\OverriddenConfigImportTest::setUp()
File
- core/
modules/ language/ tests/ src/ Kernel/ OverriddenConfigImportTest.php, line 31
Class
- OverriddenConfigImportTest
- Tests importing of config with language overrides.
Namespace
Drupal\Tests\language\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'system',
]);
$this
->copyConfig($this->container
->get('config.storage'), $this->container
->get('config.storage.sync'));
// Set up the ConfigImporter object for testing.
$storage_comparer = new StorageComparer($this->container
->get('config.storage.sync'), $this->container
->get('config.storage'));
$this->configImporter = new ConfigImporter($storage_comparer
->createChangelist(), $this->container
->get('event_dispatcher'), $this->container
->get('config.manager'), $this->container
->get('lock'), $this->container
->get('config.typed'), $this->container
->get('module_handler'), $this->container
->get('module_installer'), $this->container
->get('theme_handler'), $this->container
->get('string_translation'), $this->container
->get('extension.list.module'));
}