You are here

protected function ConfigExportUITest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config/tests/src/Functional/ConfigExportUITest.php \Drupal\Tests\config\Functional\ConfigExportUITest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigExportUITest.php, line 32

Class

ConfigExportUITest
Tests the user interface for exporting configuration.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Set up an override.
  $settings['config']['system.maintenance']['message'] = (object) [
    'value' => 'Foo',
    'required' => TRUE,
  ];
  $this
    ->writeSettings($settings);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'export configuration',
  ]));
}