function ConfigExportCommandTest::setUp

Overrides KernelTestBase::setUp

File

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

Class

ConfigExportCommandTest
Tests the 'config:export' command.

Namespace

Drupal\KernelTests\Core\Config

Code

protected function setUp() : void {
  parent::setUp();
  $this->installConfig([
    'system',
    'config_test',
  ]);
  $this->config('system.site')
    ->set('name', 'dr config')
    ->set('slogan', 'dr config for export')
    ->save();
  // Set up an override.
  // @see \Drupal\Tests\config\Functional\ConfigExportUITest::testExport()
  $GLOBALS['config']['system.maintenance']['message'] = 'Foo';
}

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