You are here

trait EntityReferenceTestTrait in Drupal 8

Same name in this branch
  1. 8 core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php \Drupal\Tests\field\Traits\EntityReferenceTestTrait
  2. 8 core/modules/field/src/Tests/EntityReference/EntityReferenceTestTrait.php \Drupal\field\Tests\EntityReference\EntityReferenceTestTrait

Provides common functionality for the EntityReference test classes.

Hierarchy

Deprecated

in drupal:8.6.2 and is removed from drupal:9.0.0. Use Drupal\Tests\field\Traits\EntityReferenceTestTrait instead.

See also

https://www.drupal.org/node/2998888

File

core/modules/field/src/Tests/EntityReference/EntityReferenceTestTrait.php, line 17

Namespace

Drupal\field\Tests\EntityReference
View source
trait EntityReferenceTestTrait {
  use nonDeprecatedEntityReferenceTestTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
EntityReferenceTestTrait::createEntityReferenceField protected function Creates a field of an entity reference field storage on the specified bundle.