You are here

protected function EntityOperationsTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php \Drupal\Tests\content_moderation\Kernel\EntityOperationsTest::setUp()
  2. 8 core/modules/system/tests/src/Functional/Entity/EntityOperationsTest.php \Drupal\Tests\system\Functional\Entity\EntityOperationsTest::setUp()
Same name and namespace in other branches
  1. 9 core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php \Drupal\Tests\content_moderation\Kernel\EntityOperationsTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/content_moderation/tests/src/Kernel/EntityOperationsTest.php, line 33

Class

EntityOperationsTest
@coversDefaultClass \Drupal\content_moderation\EntityOperations

Namespace

Drupal\Tests\content_moderation\Kernel

Code

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