function BlockContentPermissionsTest::setUp

Same name in other branches
  1. 11.x core/modules/block_content/tests/src/Kernel/BlockContentPermissionsTest.php \Drupal\Tests\block_content\Kernel\BlockContentPermissionsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/block_content/tests/src/Kernel/BlockContentPermissionsTest.php, line 40

Class

BlockContentPermissionsTest
Tests the permissions of content blocks.

Namespace

Drupal\Tests\block_content\Kernel

Code

public function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('user');
    $this->installEntitySchema('block_content');
    $this->permissionHandler = $this->container
        ->get('user.permissions');
}

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