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