You are here

protected function ContextualLinksTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/node/tests/src/FunctionalJavascript/ContextualLinksTest.php \Drupal\Tests\node\FunctionalJavascript\ContextualLinksTest::setUp()
  2. 8 core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\ContextualLinksTest::setUp()
  3. 8 core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php \Drupal\Tests\contextual\FunctionalJavascript\ContextualLinksTest::setUp()
Same name and namespace in other branches
  1. 9 core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php \Drupal\Tests\contextual\FunctionalJavascript\ContextualLinksTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php, line 30

Class

ContextualLinksTest
Tests the UI for correct contextual links.

Namespace

Drupal\Tests\contextual\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->createUser([
    'access contextual links',
  ]));
  $this
    ->placeBlock('system_branding_block', [
    'id' => 'branding',
  ]);
}