You are here

protected function TransformedConfigExportImportUITest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/TransformedConfigExportImportUITest.php, line 30

Class

TransformedConfigExportImportUITest
Tests the user interface for importing/exporting transformed configuration.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $permissions = [
    'export configuration',
    'import configuration',
    'synchronize configuration',
  ];
  $this->webUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->webUser);

  // Start off with the sync storage being the same as the active storage.
  $this
    ->copyConfig($this->container
    ->get('config.storage'), $this->container
    ->get('config.storage.sync'));
}