You are here

protected function BlockHookOperationTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 26

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);
}