EntityReferenceTestTrait.php

Same filename in this branch
  1. 8.9.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
Same filename in other branches
  1. 9 core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
  2. 10 core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php
  3. 11.x core/modules/field/tests/src/Traits/EntityReferenceTestTrait.php

Namespace

Drupal\field\Tests\EntityReference

File

core/modules/field/src/Tests/EntityReference/EntityReferenceTestTrait.php

View source
<?php

namespace Drupal\field\Tests\EntityReference;

@trigger_error(__NAMESPACE__ . '\\EntityReferenceTestTrait is deprecated Drupal 8.6.2 for removal before 9.0.0. Use Drupal\\Tests\\field\\Traits\\EntityReferenceTestTrait instead. See https://www.drupal.org/node/2998888', E_USER_DEPRECATED);
use Drupal\Tests\field\Traits\EntityReferenceTestTrait as nonDeprecatedEntityReferenceTestTrait;

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

}

Traits

Title Deprecated Summary
EntityReferenceTestTrait

in drupal:8.6.2 and is removed from drupal:9.0.0. Use Drupal\Tests\field\Traits\EntityReferenceTestTrait 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.