function BlockHookOperationTest::setUp

Same name in other branches
  1. 9 core/modules/block/tests/src/Functional/BlockHookOperationTest.php \Drupal\Tests\block\Functional\BlockHookOperationTest::setUp()
  2. 8.9.x core/modules/block/tests/src/Functional/BlockHookOperationTest.php \Drupal\Tests\block\Functional\BlockHookOperationTest::setUp()
  3. 11.x core/modules/block/tests/src/Functional/BlockHookOperationTest.php \Drupal\Tests\block\Functional\BlockHookOperationTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/block/tests/src/Functional/BlockHookOperationTest.php, line 29

Class

BlockHookOperationTest
Tests for Block module regarding hook_entity_operations_alter().

Namespace

Drupal\Tests\block\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $permissions = [
        'administer blocks',
    ];
    // Create and log in user.
    $admin_user = $this->drupalCreateUser($permissions);
    $this->drupalLogin($admin_user);
}

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