function ConfigExportImportUITest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigExportImportUITest.php, line 79

Class

ConfigExportImportUITest
Tests the user interface for importing/exporting configuration.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() {
    parent::setUp();
    // The initial import must be done with uid 1 because if separately named
    // roles are created then the role is lost after import. If the roles
    // created have the same name then the sync will fail because they will
    // have different UUIDs.
    $this->drupalLogin($this->rootUser);
}

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