public function ConfigIgnoreBrowserTestBase::doImport in Config Ignore 8.3
Same name and namespace in other branches
- 8.2 tests/src/Functional/ConfigIgnoreBrowserTestBase.php \Drupal\Tests\config_ignore\Functional\ConfigIgnoreBrowserTestBase::doImport()
Perform a config import from sync. folder.
7 calls to ConfigIgnoreBrowserTestBase::doImport()
- ConfigIgnoreHookTest::testSettingsAlterHook in tests/
src/ Functional/ ConfigIgnoreHookTest.php - Test hook implementation of another module.
- ConfigIgnoreTest::testImportMissingConfig in tests/
src/ Functional/ ConfigIgnoreTest.php - Tests config in active storage is not deleted if it should be ignored.
- ConfigIgnoreTest::testValidateForceImporting in tests/
src/ Functional/ ConfigIgnoreTest.php - Verify Force Import syntax is working.
- ConfigIgnoreTest::testValidateForceImportingWithWildcard in tests/
src/ Functional/ ConfigIgnoreTest.php - Verify excluded configuration works with wildcards.
- ConfigIgnoreTest::testValidateIgnoring in tests/
src/ Functional/ ConfigIgnoreTest.php - Verify that config can get ignored.
File
- tests/
src/ Functional/ ConfigIgnoreBrowserTestBase.php, line 33
Class
- ConfigIgnoreBrowserTestBase
- Class ConfigIgnoreBrowserTestBase.
Namespace
Drupal\Tests\config_ignore\FunctionalCode
public function doImport() {
// Set up the ConfigImporter object for testing.
$storage_comparer = new StorageComparer($this->container
->get('config.import_transformer')
->transform($this->container
->get('config.storage.sync')), $this->container
->get('config.storage'));
$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'), $this->container
->get('extension.list.module'));
$config_importer
->reset()
->import();
}