From 9f053f65cd61dccf3058c93b00e496ff4671faee Mon Sep 17 00:00:00 2001
From: nod_ <nod_@598310.no-reply.drupal.org>
Date: Sun, 25 Aug 2024 07:32:40 +0200
Subject: [PATCH] Issue #3469823 by catch: TaxonomyTestTrait methods should be
 protected

(cherry picked from commit b81032f5c5d74273358b58f641daf6a9df07da5e)
---
 core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php b/core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php
index 43e27c25d2d7..e2cc4df2523c 100644
--- a/core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php
+++ b/core/modules/taxonomy/tests/src/Traits/TaxonomyTestTrait.php
@@ -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' => [
-- 
GitLab