function ModerationStateFieldTest::setUp

Same name and namespace in other branches
  1. main core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldTest.php \Drupal\Tests\content_moderation\Kernel\ModerationStateFieldTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_moderation/tests/src/Kernel/ModerationStateFieldTest.php, line 36

Class

ModerationStateFieldTest
Tests the moderation state field.

Namespace

Drupal\Tests\content_moderation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->installSchema('node', 'node_access');
  $this->installEntitySchema('workflow');
  $this->installEntitySchema('content_moderation_state');
  $this->installEntitySchema('node');
  $this->installEntitySchema('user');
}

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