function ConfigImportRenameValidationTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php \Drupal\KernelTests\Core\Config\ConfigImportRenameValidationTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php \Drupal\KernelTests\Core\Config\ConfigImportRenameValidationTest::setUp()
  3. 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php \Drupal\KernelTests\Core\Config\ConfigImportRenameValidationTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php, line 44

Class

ConfigImportRenameValidationTest
Tests validating renamed configuration in a configuration import.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('node');
    $this->installConfig([
        'system',
        'field',
    ]);
    // Set up the ConfigImporter object for testing.
    $storage_comparer = new StorageComparer($this->container
        ->get('config.storage.sync'), $this->container
        ->get('config.storage'));
    $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'), $this->container
        ->get('extension.list.module'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.