You are here

protected function EditModeTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::setUp()
  2. 9 core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php \Drupal\Tests\contextual\FunctionalJavascript\EditModeTest::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',
  ]);
}