function BlockLayoutTourTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/block/tests/src/Functional/BlockLayoutTourTest.php, line 36

Class

BlockLayoutTourTest
Tests the Block Layout tour.

Namespace

Drupal\Tests\block\Functional

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.