EntityReferenceTestTrait.php

Same filename in other branches
  1. 9 core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
  2. 8.9.x core/modules/field/src/Tests/EntityReference/EntityReferenceTestTrait.php
  3. 8.9.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
  4. 11.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php

Namespace

Drupal\Tests\field\Traits

File

core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\field\Traits;

@trigger_error('The ' . __NAMESPACE__ . '\\EntityReferenceTestTrait is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Instead, use \\Drupal\\Tests\\field\\Traits\\EntityReferenceFieldCreationTrait. See https://www.drupal.org/node/3401941', E_USER_DEPRECATED);

/**
 * Provides common functionality for the EntityReference test classes.
 *
 * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use
 *    \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.
 *
 * @see https://www.drupal.org/node/3401941
 */
trait EntityReferenceTestTrait {
    use EntityReferenceFieldCreationTrait;

}

Traits

Title Deprecated Summary
EntityReferenceTestTrait

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Tests\field\Traits\EntityReferenceFieldCreationTrait instead.

Provides common functionality for the EntityReference test classes.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.