Returns a ConfigImporter object to import test importing of configuration.
\Drupal\Core\Config\ConfigImporter The ConfigImporter object.
public function configImporter() {
if (!$this->configImporter) {
// Set up the ConfigImporter object for testing.
$config_comparer = new StorageComparer($this->container
->get('config.storage.staging'), $this->container
->get('config.storage'));
$this->configImporter = new ConfigImporter($config_comparer, $this->container
->get('event_dispatcher'), $this->container
->get('config.factory'), $this->container
->get('plugin.manager.entity'), $this->container
->get('lock'));
}
// Always recalculate the changelist when called.
return $this->configImporter
->reset();
}