X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FTaxonomyTestTrait.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FTaxonomyTestTrait.php;h=8dcdf170073f9afbde27337c22fa7d80fdbd0931;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=db445e962bd5e5eea651f58ecd2f7d4665387365;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php b/web/core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php index db445e962..8dcdf1700 100644 --- a/web/core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php +++ b/web/core/modules/taxonomy/tests/src/Functional/TaxonomyTestTrait.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\taxonomy\Functional; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Language\LanguageInterface; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; @@ -20,7 +19,7 @@ trait TaxonomyTestTrait { $vocabulary = Vocabulary::create([ 'name' => $this->randomMachineName(), 'description' => $this->randomMachineName(), - 'vid' => Unicode::strtolower($this->randomMachineName()), + 'vid' => mb_strtolower($this->randomMachineName()), 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED, 'weight' => mt_rand(0, 10), ]);