function EditModeTest::setUp
Same name in other branches
- 9 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
- 8.9.x core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
- 11.x core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ contextual/ tests/ src/ FunctionalJavascript/ EditModeTest.php, line 49
Class
- EditModeTest
- Tests edit mode.
Namespace
Drupal\Tests\contextual\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
\Drupal::service('theme_installer')->install([
$this->adminTheme,
]);
\Drupal::configFactory()->getEditable('system.theme')
->set('admin', $this->adminTheme)
->save();
$this->drupalLogin($this->createUser([
'administer blocks',
'access contextual links',
'access toolbar',
'view the administration theme',
]));
$this->placeBlock('system_powered_by_block', [
'id' => 'powered',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.