You are here

public function ConfigIgnoreBrowserTestBase::doImport in Config Ignore 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/ConfigIgnoreBrowserTestBase.php \Drupal\Tests\config_ignore\Functional\ConfigIgnoreBrowserTestBase::doImport()

Perform a config import from sync. folder.

6 calls to ConfigIgnoreBrowserTestBase::doImport()
ConfigIgnoreHookTest::testSettingsAlterHook in tests/src/Functional/ConfigIgnoreHookTest.php
Test hook implementation of another module.
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.
ConfigIgnoreTest::testValidateIgnoringWithWildcard in tests/src/Functional/ConfigIgnoreTest.php
Verify all wildcard asterisk is working.

... See full list

File

tests/src/Functional/ConfigIgnoreBrowserTestBase.php, line 34

Class

ConfigIgnoreBrowserTestBase
Class ConfigIgnoreBrowserTestBase.

Namespace

Drupal\Tests\config_ignore\Functional

Code

public function doImport() {

  // Set up the ConfigImporter object for testing.
  $storage_comparer = new StorageComparer($this
    ->getImportStorage(), $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();
}