trait EntityReferenceTestTrait
Same name in other branches
- 9 core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php \Drupal\Tests\field\Traits\EntityReferenceTestTrait
- 8.9.x core/modules/field/src/Tests/EntityReference/EntityReferenceTestTrait.php \Drupal\field\Tests\EntityReference\EntityReferenceTestTrait
- 8.9.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php \Drupal\Tests\field\Traits\EntityReferenceTestTrait
- 11.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php \Drupal\Tests\field\Traits\EntityReferenceTestTrait
Provides common functionality for the EntityReference test classes.
Hierarchy
- trait \Drupal\Tests\field\Traits\EntityReferenceTestTrait uses \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait
Deprecated
in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.
See also
https://www.drupal.org/node/3401941
File
-
core/
modules/ field/ tests/ src/ Traits/ EntityReferenceTestTrait.php, line 17
Namespace
Drupal\Tests\field\TraitsView source
trait EntityReferenceTestTrait {
use EntityReferenceFieldCreationTrait;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.