comparison core/modules/taxonomy/tests/src/Functional/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
1 <?php 1 <?php
2 2
3 namespace Drupal\Tests\taxonomy\Functional; 3 namespace Drupal\Tests\taxonomy\Functional;
4 4
5 use Drupal\Core\Field\FieldStorageDefinitionInterface; 5 use Drupal\Core\Field\FieldStorageDefinitionInterface;
6 use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
7 use Drupal\field\Entity\FieldStorageConfig; 6 use Drupal\field\Entity\FieldStorageConfig;
8 use Drupal\language\Entity\ConfigurableLanguage; 7 use Drupal\language\Entity\ConfigurableLanguage;
8 use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
9 9
10 /** 10 /**
11 * Provides common testing base for translated taxonomy terms. 11 * Provides common testing base for translated taxonomy terms.
12 */ 12 */
13 trait TaxonomyTranslationTestTrait { 13 trait TaxonomyTranslationTestTrait {
15 use EntityReferenceTestTrait; 15 use EntityReferenceTestTrait;
16 16
17 /** 17 /**
18 * The vocabulary. 18 * The vocabulary.
19 * 19 *
20 * @var \Drupal\taxonomy\Entity\Vocabulary; 20 * @var \Drupal\taxonomy\Entity\Vocabulary
21 */ 21 */
22 protected $vocabulary; 22 protected $vocabulary;
23 23
24 /** 24 /**
25 * The field name for our taxonomy term field. 25 * The field name for our taxonomy term field.