TaxonomyTestTrait deprecated
trait TaxonomyTestTrait (View source)
deprecated
Provides common helper methods for Taxonomy module tests.
Methods
createVocabulary()
Returns a new vocabulary with random properties.
createTerm(Vocabulary $vocabulary, array $values = [])
Returns a new term with random properties in vocabulary $vid.
Details
createVocabulary()
Returns a new vocabulary with random properties.
Term
createTerm(Vocabulary $vocabulary, array $values = [])
Returns a new term with random properties in vocabulary $vid.