function ConfigImportUploadTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigImportUploadTest.php, line 37

Class

ConfigImportUploadTest
Tests importing configuration from an uploaded file.

Namespace

Drupal\Tests\config\Functional

Code

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

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