function ContentModerationStateAccessControlHandlerTest::setUp

Same name in other branches
  1. 8.9.x core/modules/content_moderation/tests/src/Kernel/ContentModerationStateAccessControlHandlerTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateAccessControlHandlerTest::setUp()
  2. 10 core/modules/content_moderation/tests/src/Kernel/ContentModerationStateAccessControlHandlerTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateAccessControlHandlerTest::setUp()
  3. 11.x core/modules/content_moderation/tests/src/Kernel/ContentModerationStateAccessControlHandlerTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationStateAccessControlHandlerTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_moderation/tests/src/Kernel/ContentModerationStateAccessControlHandlerTest.php, line 35

Class

ContentModerationStateAccessControlHandlerTest
@coversDefaultClass \Drupal\content_moderation\ContentModerationStateAccessControlHandler @group content_moderation

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('content_moderation_state');
    $this->installEntitySchema('user');
    $this->accessControlHandler = $this->container
        ->get('entity_type.manager')
        ->getAccessControlHandler('content_moderation_state');
}

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