function BlockDragTest::setUp

Same name in other branches
  1. 11.x core/modules/block/tests/src/FunctionalJavascript/BlockDragTest.php \Drupal\Tests\block\FunctionalJavascript\BlockDragTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/block/tests/src/FunctionalJavascript/BlockDragTest.php, line 29

Class

BlockDragTest
Tests drag and drop blocks on block layout page.

Namespace

Drupal\Tests\block\FunctionalJavascript

Code

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

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