You are here

protected function EntityReferenceRevisionsSaveTest::setUp in Entity Reference Revisions 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityReferenceRevisionsSaveTest.php, line 36

Class

EntityReferenceRevisionsSaveTest
Tests the entity_reference_revisions NeedsSaveInterface.

Namespace

Drupal\Tests\entity_reference_revisions\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Create article content type.
  $values = [
    'type' => 'article',
    'name' => 'Article',
  ];
  $node_type = NodeType::create($values);
  $node_type
    ->save();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('entity_test_composite');
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
}