comparison core/modules/taxonomy/src/Tests/TaxonomyTranslationTestTrait.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
3 namespace Drupal\taxonomy\Tests; 3 namespace Drupal\taxonomy\Tests;
4 4
5 @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); 5 @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);
6 6
7 use Drupal\Core\Field\FieldStorageDefinitionInterface; 7 use Drupal\Core\Field\FieldStorageDefinitionInterface;
8 use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
9 use Drupal\field\Entity\FieldStorageConfig; 8 use Drupal\field\Entity\FieldStorageConfig;
10 use Drupal\language\Entity\ConfigurableLanguage; 9 use Drupal\language\Entity\ConfigurableLanguage;
10 use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
11 11
12 /** 12 /**
13 * Provides common testing base for translated taxonomy terms. 13 * Provides common testing base for translated taxonomy terms.
14 * 14 *
15 * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. 15 * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0.
20 use EntityReferenceTestTrait; 20 use EntityReferenceTestTrait;
21 21
22 /** 22 /**
23 * The vocabulary. 23 * The vocabulary.
24 * 24 *
25 * @var \Drupal\taxonomy\Entity\Vocabulary; 25 * @var \Drupal\taxonomy\Entity\Vocabulary
26 */ 26 */
27 protected $vocabulary; 27 protected $vocabulary;
28 28
29 /** 29 /**
30 * The field name for our taxonomy term field. 30 * The field name for our taxonomy term field.