function ConfigImportInstallProfileTest::setUp

Same name in other branches
  1. 9 core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php \Drupal\Tests\config\Functional\ConfigImportInstallProfileTest::setUp()
  2. 8.9.x core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php \Drupal\Tests\config\Functional\ConfigImportInstallProfileTest::setUp()
  3. 11.x core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php \Drupal\Tests\config\Functional\ConfigImportInstallProfileTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigImportInstallProfileTest.php, line 43

Class

ConfigImportInstallProfileTest
Tests the importing/exporting configuration based on the install profile.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->webUser = $this->drupalCreateUser([
        'synchronize configuration',
    ]);
    $this->drupalLogin($this->webUser);
    $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.