protected function BlockHookOperationTest::setUp in Drupal 9
Same name and namespace in other branches
- 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\FunctionalCode
protected function setUp() : void {
parent::setUp();
$permissions = [
'administer blocks',
];
// Create and log in user.
$admin_user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($admin_user);
}