protected function ConfigImportRecreateTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/config/src/Tests/ConfigImportRecreateTest.php \Drupal\config\Tests\ConfigImportRecreateTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ config/ src/ Tests/ ConfigImportRecreateTest.php, line 37 - Contains \Drupal\config\Tests\ConfigImportRecreateTest.
Class
- ConfigImportRecreateTest
- Tests importing recreated configuration entities.
Namespace
Drupal\config\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('node');
$this
->installConfig(array(
'field',
'node',
));
$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->container
->get('config.manager'));
$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'));
}