Verified Commit 3a82b50a authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3469823 by catch: TaxonomyTestTrait methods should be protected

(cherry picked from commit b81032f5)
parent 8b52f2b0
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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(),
@@ -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' => [