function ModuleTestBase::setUp
Same name in this branch
- 8.9.x core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()
- 10 core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()
- 11.x core/modules/system/tests/src/Functional/Module/ModuleTestBase.php \Drupal\Tests\system\Functional\Module\ModuleTestBase::setUp()
Overrides WebTestBase::setUp
File
-
core/
modules/ system/ src/ Tests/ Module/ ModuleTestBase.php, line 33
Class
- ModuleTestBase
- Helper class for module test cases.
Namespace
Drupal\system\Tests\ModuleCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'access administration pages',
'administer modules',
]);
$this->drupalLogin($this->adminUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.