X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FVocabularyCrudTest.php;fp=web%2Fcore%2Fmodules%2Ftaxonomy%2Ftests%2Fsrc%2FFunctional%2FVocabularyCrudTest.php;h=1fb01630bf67790746c5cf05171c56500e213b66;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=2ac2d9de61245fc6a700bb102fd736c8984614be;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php b/web/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php index 2ac2d9de6..1fb01630b 100644 --- a/web/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php +++ b/web/core/modules/taxonomy/tests/src/Functional/VocabularyCrudTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\taxonomy\Functional; -use Drupal\Component\Utility\Unicode; use Drupal\field\Entity\FieldConfig; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\field\Entity\FieldStorageConfig; @@ -144,12 +143,12 @@ class VocabularyCrudTest extends TaxonomyTestBase { public function testUninstallReinstall() { // Field storages and fields attached to taxonomy term bundles should be // removed when the module is uninstalled. - $field_name = Unicode::strtolower($this->randomMachineName() . '_field_name'); + $field_name = mb_strtolower($this->randomMachineName() . '_field_name'); $storage_definition = [ 'field_name' => $field_name, 'entity_type' => 'taxonomy_term', 'type' => 'text', - 'cardinality' => 4 + 'cardinality' => 4, ]; FieldStorageConfig::create($storage_definition)->save(); $field_definition = [ @@ -165,7 +164,7 @@ class VocabularyCrudTest extends TaxonomyTestBase { // installed for testing below. $this->vocabulary->unsetThirdPartySetting('taxonomy_crud', 'foo'); - require_once \Drupal::root() . '/core/includes/install.inc'; + require_once $this->root . '/core/includes/install.inc'; $this->container->get('module_installer')->uninstall(['taxonomy']); $this->container->get('module_installer')->install(['taxonomy']);