function EditModeTest::setUp

Same name in other branches
  1. 8.9.x core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
  2. 10 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
  3. 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 40

Class

EditModeTest
Tests edit mode.

Namespace

Drupal\Tests\contextual\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->createUser([
        'administer blocks',
        'access contextual links',
        'access toolbar',
    ]));
    $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.