You are here

protected function HierarchyNestedSetRevisionIntegrationTest::doCreateTestEntity in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/HierarchyNestedSetRevisionIntegrationTest.php \Drupal\Tests\entity_hierarchy\Kernel\HierarchyNestedSetRevisionIntegrationTest::doCreateTestEntity()

Creates the test entity.

Parameters

array $values: Entity values.

Return value

\Drupal\Core\Entity\EntityInterface Created entity.

Overrides EntityHierarchyTestTrait::doCreateTestEntity

File

tests/src/Kernel/HierarchyNestedSetRevisionIntegrationTest.php, line 39

Class

HierarchyNestedSetRevisionIntegrationTest
Tests integration with entity_hierarchy and a revisionable entity.

Namespace

Drupal\Tests\entity_hierarchy\Kernel

Code

protected function doCreateTestEntity(array $values) {

  // We use a different entity type here.
  $entity = EntityTestRev::create($values);
  return $entity;
}