public function ConfigImportLocaleTestBase::doImport in Locale: Config import 8
Perform a config import from sync. folder.
File
- tests/
src/ Functional/ ConfigImportLocaleTestBase.php, line 28
Class
- ConfigImportLocaleTestBase
- Class ConfigIgnoreBrowserTestBase.
Namespace
Drupal\Tests\config_import_locale\FunctionalCode
public function doImport() {
// 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'));
$config_importer = 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'));
$config_importer
->reset()
->import();
}