diff --git a/core/modules/taxonomy/src/Tests/TaxonomyHelperTestTrait.php b/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php similarity index 94% rename from core/modules/taxonomy/src/Tests/TaxonomyHelperTestTrait.php rename to core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php index 275a05e..746be2c 100644 --- a/core/modules/taxonomy/src/Tests/TaxonomyHelperTestTrait.php +++ b/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\taxonomy\Tests\TaxonomyHelperTestTrait. + * Definition of Drupal\taxonomy\Tests\TaxonomyTestTrait. */ namespace Drupal\taxonomy\Tests; @@ -14,7 +14,7 @@ /** * Provides common helper methods for Taxonomy module tests. */ -trait TaxonomyHelperTestTrait { +trait TaxonomyTestTrait { /** * Returns a new vocabulary with random properties. diff --git a/core/modules/taxonomy/src/Tests/TermUnitTest.php b/core/modules/taxonomy/src/Tests/TermKernelTest.php similarity index 90% rename from core/modules/taxonomy/src/Tests/TermUnitTest.php rename to core/modules/taxonomy/src/Tests/TermKernelTest.php index af1ad22..d1cbc0b 100644 --- a/core/modules/taxonomy/src/Tests/TermUnitTest.php +++ b/core/modules/taxonomy/src/Tests/TermKernelTest.php @@ -2,22 +2,36 @@ /** * @file - * Definition of Drupal\taxonomy\Tests\TermUnitTest. + * Definition of Drupal\taxonomy\Tests\TermKernelTest. */ namespace Drupal\taxonomy\Tests; use Drupal\taxonomy\Entity\Term; -use Drupal\taxonomy\Tests\TaxonomyHelperTestTrait; +use Drupal\taxonomy\Tests\TaxonomyTestTrait; use Drupal\simpletest\KernelTestBase; /** * Unit tests for taxonomy term functions. * * @group taxonomy */ -class TermUnitTest extends KernelTestBase { +class TermKernelTest extends KernelTestBase { - use TaxonomyHelperTestTrait; + use TaxonomyTestTrait; + + /** + * {@inheritdoc} + */ + public static $modules = array( 'filter', 'taxonomy', 'taxonomy_term', 'text', 'user' ); + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + $this->installConfig(array('filter')); + $this->installEntitySchema('taxonomy_term'); + } function testTermDelete() { $vocabulary = $this->createVocabulary();