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