You are here

protected function ModuleTestBase::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/system/src/Tests/Module/ModuleTestBase.php \Drupal\system\Tests\Module\ModuleTestBase::setUp()
  2. 8 core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()
Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()

Overrides BrowserTestBase::setUp

1 call to ModuleTestBase::setUp()
ConfigImportAllTest::setUp in core/modules/config/tests/src/Functional/ConfigImportAllTest.php
1 method overrides ModuleTestBase::setUp()
ConfigImportAllTest::setUp in core/modules/config/tests/src/Functional/ConfigImportAllTest.php

File

core/modules/system/tests/src/Functional/Module/ModuleTestBase.php, line 26

Class

ModuleTestBase
Helper class for module test cases.

Namespace

Drupal\Tests\system\Functional\Module

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer modules',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}