function AdminTest::setUp
Same name in this branch
- 11.x core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::setUp()
Same name and namespace in other branches
- 10 core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::setUp()
- 9 core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::setUp()
- 8.9.x core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::setUp()
- main core/modules/system/tests/src/Functional/System/AdminTest.php \Drupal\Tests\system\Functional\System\AdminTest::setUp()
- main core/themes/admin/tests/src/Functional/AdminTest.php \Drupal\Tests\admin\Functional\AdminTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
themes/ admin/ tests/ src/ Functional/ AdminTest.php, line 38
Class
- AdminTest
- Tests the Admin theme.
Namespace
Drupal\Tests\admin\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->assertTrue(\Drupal::service('theme_installer')->install([
'admin',
]));
$this->container
->get('config.factory')
->getEditable('system.theme')
->set('default', 'admin')
->set('admin', 'admin')
->save();
$adminUser = $this->drupalCreateUser([
'access administration pages',
'administer themes',
'access toolbar',
'access content overview',
]);
$this->drupalLogin($adminUser);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.