Loading core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ trait TaxonomyTestTrait { * @return \Drupal\taxonomy\VocabularyInterface * A vocabulary used for testing. */ public function createVocabulary(array $values = []) { protected function createVocabulary(array $values = []) { $values += [ 'name' => $this->randomMachineName(), 'description' => $this->randomMachineName(), Loading @@ -49,7 +49,7 @@ public function createVocabulary(array $values = []) { * @return \Drupal\taxonomy\TermInterface * The new taxonomy term object. */ public function createTerm(VocabularyInterface $vocabulary, $values = []) { protected function createTerm(VocabularyInterface $vocabulary, $values = []) { $term = Term::create($values + [ 'name' => $this->randomMachineName(), 'description' => [ Loading Loading
core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php +2 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ trait TaxonomyTestTrait { * @return \Drupal\taxonomy\VocabularyInterface * A vocabulary used for testing. */ public function createVocabulary(array $values = []) { protected function createVocabulary(array $values = []) { $values += [ 'name' => $this->randomMachineName(), 'description' => $this->randomMachineName(), Loading @@ -49,7 +49,7 @@ public function createVocabulary(array $values = []) { * @return \Drupal\taxonomy\TermInterface * The new taxonomy term object. */ public function createTerm(VocabularyInterface $vocabulary, $values = []) { protected function createTerm(VocabularyInterface $vocabulary, $values = []) { $term = Term::create($values + [ 'name' => $this->randomMachineName(), 'description' => [ Loading