You are here

protected function ConfigInstallWebTest::setUp in Drupal 8

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

Overrides BrowserTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigInstallWebTest.php, line 34

Class

ConfigInstallWebTest
Tests installation and removal of configuration objects in install, disable and uninstall functionality.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer modules',
    'administer themes',
    'administer site configuration',
  ]);

  // Ensure the global variable being asserted by this test does not exist;
  // a previous test executed in this request/process might have set it.
  unset($GLOBALS['hook_config_test']);
}