trait TaxonomyTestTrait
Provides common helper methods for Taxonomy module tests.
Hierarchy
- trait \Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait uses \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait
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\FunctionalView source
trait TaxonomyTestTrait {
use ActualTaxonomyTestTrait;
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| 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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.