X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTests%2FTaxonomyTranslationTestTrait.php;h=98d5906fb9bee64f2e29dcb9850a1f96a881798d;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=3607fc6b0a52233df654f45849b365e0cc133f0c;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php b/web/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php index 3607fc6b0..98d5906fb 100644 --- a/web/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php +++ b/web/core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php @@ -2,13 +2,18 @@ namespace Drupal\taxonomy\Tests; +@trigger_error(__NAMESPACE__ . '\TaxonomyTranslationTestTrait is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait', E_USER_DEPRECATED); + use Drupal\Core\Field\FieldStorageDefinitionInterface; -use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait; use Drupal\field\Entity\FieldStorageConfig; use Drupal\language\Entity\ConfigurableLanguage; +use Drupal\Tests\field\Traits\EntityReferenceTestTrait; /** * Provides common testing base for translated taxonomy terms. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\Tests\taxonomy\Functional\TaxonomyTranslationTestTrait */ trait TaxonomyTranslationTestTrait { @@ -17,7 +22,7 @@ trait TaxonomyTranslationTestTrait { /** * The vocabulary. * - * @var \Drupal\taxonomy\Entity\Vocabulary; + * @var \Drupal\taxonomy\Entity\Vocabulary */ protected $vocabulary; @@ -73,10 +78,6 @@ trait TaxonomyTranslationTestTrait { /** * Adds term reference field for the article content type. - * - * @param bool $translatable - * (optional) If TRUE, create a translatable term reference field. Defaults - * to FALSE. */ protected function setUpTermReferenceField() { $handler_settings = [