X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTests%2FTaxonomyTestTrait.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTests%2FTaxonomyTestTrait.php;h=a1b4a552144a6c2124fcb9f35f62f63b09dfb629;hp=8c4a6672703d8f542353fd57520c02cd3abb7fb4;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php b/web/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php index 8c4a66727..a1b4a5521 100644 --- a/web/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php +++ b/web/core/modules/taxonomy/src/Tests/TaxonomyTestTrait.php @@ -4,7 +4,6 @@ namespace Drupal\taxonomy\Tests; @trigger_error(__NAMESPACE__ . '\TaxonomyTestTrait is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait', E_USER_DEPRECATED); -use Drupal\Component\Utility\Unicode; use Drupal\Core\Language\LanguageInterface; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Term; @@ -25,7 +24,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), ]);