function BlockContextualLinksTest::setUp

Same name in other branches
  1. 10 core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php \Drupal\Tests\block\FunctionalJavascript\BlockContextualLinksTest::setUp()
  2. 11.x 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 34

Class

BlockContextualLinksTest
Tests the contextual links added while rendering the block.

Namespace

Drupal\Tests\block\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $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.