function BlockContextualLinksTest::setUp
Same name in other branches
- 9 core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php \Drupal\Tests\block\FunctionalJavascript\BlockContextualLinksTest::setUp()
- 10 core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php \Drupal\Tests\block\FunctionalJavascript\BlockContextualLinksTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ block/ tests/ src/ FunctionalJavascript/ BlockContextualLinksTest.php, line 36
Class
- BlockContextualLinksTest
- Tests the contextual links added while rendering the block.
Namespace
Drupal\Tests\block\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser([
'administer blocks',
'access administration pages',
'access contextual links',
]));
$this->blockId = $this->defaultTheme . '_powered';
$this->placeBlock('system_powered_by_block', [
'id' => $this->blockId,
'region' => 'content',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.