trait TaxonomyTestTrait in Drupal 8
Same name in this branch
- 8 core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php \Drupal\taxonomy\Tests\TaxonomyTestTrait
- 8 core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php \Drupal\Tests\taxonomy\Traits\TaxonomyTestTrait
- 8 core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php \Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait
Provides common helper methods for Taxonomy module tests.
Hierarchy
- trait \Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait uses 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxonomyTestTrait:: |
public | function | Returns a new term with random properties given a vocabulary. | |
TaxonomyTestTrait:: |
public | function | Returns a new vocabulary with random properties. |