diff --git a/core/modules/taxonomy/src/Tests/Plugin/Condition/VocabularyConditionTest.php b/core/modules/taxonomy/src/Tests/Plugin/Condition/VocabularyConditionTest.php index f724b9c..e01c1c6 100644 --- a/core/modules/taxonomy/src/Tests/Plugin/Condition/VocabularyConditionTest.php +++ b/core/modules/taxonomy/src/Tests/Plugin/Condition/VocabularyConditionTest.php @@ -13,15 +13,21 @@ use Drupal\system\Tests\Entity\EntityUnitTestBase; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; +use Drupal\taxonomy\TermInterface; use Drupal\taxonomy\VocabularyInterface; /** - * Tests the vocabulary condition test. + * Tests the vocabulary condition. * * @group taxonomy */ class VocabularyConditionTest extends EntityUnitTestBase { + /** + * Modules to enable. + * + * @var array + */ public static $modules = array('taxonomy'); /** @@ -94,7 +100,10 @@ public function testConditions() { } /** - * Returns a new vocabulary with random properties. + * Creates and saves a new vocabulary with random properties. + * + * @return VocabularyInterface + * The created vocabulary. */ protected function createVocabulary() { // Create a vocabulary. @@ -109,7 +118,13 @@ protected function createVocabulary() { } /** - * Returns a new term with random properties in vocabulary $vid. + * Creates and saves a new term with random properties in a given vocabulary. + * + * @param VocabularyInterface $vocabulary + * The vocabulary which the created term should belong to. + * + * @return TermInterface + * The created term. */ protected function createTerm(VocabularyInterface $vocabulary) { $term = Term::create(array(