function ContentTranslationConfigImportTest::setUp
Same name in other branches
- 9 core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationConfigImportTest::setUp()
- 8.9.x core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationConfigImportTest::setUp()
- 11.x core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php \Drupal\Tests\content_translation\Kernel\ContentTranslationConfigImportTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationConfigImportTest.php, line 39
Class
- ContentTranslationConfigImportTest
- Tests content translation updates performed during config import.
Namespace
Drupal\Tests\content_translation\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installConfig([
'system',
]);
$this->installEntitySchema('entity_test_mul');
$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'), $this->container
->get('extension.list.theme'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.