You are here

trait TaxonomyTestTrait in Drupal 8

Same name in this branch
  1. 8 core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php \Drupal\taxonomy\Tests\TaxonomyTestTrait
  2. 8 core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait
  3. 8 core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php \Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait

Provides common helper methods for Taxonomy module tests.

Hierarchy

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait instead.

See also

https://www.drupal.org/node/3041703

File

core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php, line 17

Namespace

Drupal\Tests\taxonomy\Functional
View source
trait TaxonomyTestTrait {
  use ActualTaxonomyTestTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
TaxonomyTestTrait::createTerm public function Returns a new term with random properties given a vocabulary.
TaxonomyTestTrait::createVocabulary public function Returns a new vocabulary with random properties.