function ConfigOverrideTest::setUp

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

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Config/ConfigOverrideTest.php, line 24

Class

ConfigOverrideTest
Tests configuration overrides via $config in settings.php.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
        'system',
    ]);
    $this->copyConfig($this->container
        ->get('config.storage'), $this->container
        ->get('config.storage.sync'));
}

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