protected function ForwardRevisionNodeValidationTest::doCreateTestEntity in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x tests/src/Functional/ForwardRevisionNodeValidationTest.php \Drupal\Tests\entity_hierarchy\Functional\ForwardRevisionNodeValidationTest::doCreateTestEntity()
Creates the test entity.
Parameters
array $values: Entity values.
Return value
\Drupal\Core\Entity\EntityInterface Created entity.
Overrides EntityHierarchyTestTrait::doCreateTestEntity
1 call to ForwardRevisionNodeValidationTest::doCreateTestEntity()
- ForwardRevisionNodeValidationTest::createTestEntity in tests/
src/ Functional/ ForwardRevisionNodeValidationTest.php - Creates a new test entity.
File
- tests/
src/ Functional/ ForwardRevisionNodeValidationTest.php, line 117
Class
- ForwardRevisionNodeValidationTest
- Defines a class for testing the warnings on delete form.
Namespace
Drupal\Tests\entity_hierarchy\FunctionalCode
protected function doCreateTestEntity(array $values) {
$entity = Node::create($values);
return $entity;
}