function BlockLayoutTourTest::setUp

Same name in other branches
  1. 9 core/modules/block/tests/src/Functional/BlockLayoutTourTest.php \Drupal\Tests\block\Functional\BlockLayoutTourTest::setUp()
  2. 10 core/modules/tour/tests/src/Functional/Block/BlockLayoutTourTest.php \Drupal\Tests\tour\Functional\Block\BlockLayoutTourTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/tour/tests/src/Functional/Block/BlockLayoutTourTest.php, line 39

Class

BlockLayoutTourTest
Tests the Block Layout tour.

Namespace

Drupal\Tests\tour\Functional\Block

Code

protected function setUp() : void {
    parent::setUp();
    $this->adminUser = $this->drupalCreateUser([
        'administer blocks',
        'access tour',
    ]);
    $this->drupalLogin($this->adminUser);
    $this->drupalPlaceBlock('local_actions_block');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.