X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FTranslationTest.php;fp=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FTranslationTest.php;h=5d03f6917144af0c74093396ef5611161988332f;hp=124fd94da0c5ff6880973cfcd82159e71a0df8b0;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/field/tests/src/Kernel/TranslationTest.php b/web/core/modules/field/tests/src/Kernel/TranslationTest.php index 124fd94da..5d03f6917 100644 --- a/web/core/modules/field/tests/src/Kernel/TranslationTest.php +++ b/web/core/modules/field/tests/src/Kernel/TranslationTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\field\Kernel; -use Drupal\Component\Utility\Unicode; use Drupal\field\Entity\FieldConfig; use Drupal\language\Entity\ConfigurableLanguage; use Drupal\field\Entity\FieldStorageConfig; @@ -19,7 +18,7 @@ class TranslationTest extends FieldKernelTestBase { /** * Modules to enable. * - * node is required because the tests alter the node entity type. + * The node module is required because the tests alter the node entity type. * * @var array */ @@ -75,7 +74,7 @@ class TranslationTest extends FieldKernelTestBase { $this->installConfig(['language']); - $this->fieldName = Unicode::strtolower($this->randomMachineName()); + $this->fieldName = mb_strtolower($this->randomMachineName()); $this->entityType = 'entity_test'; @@ -140,7 +139,7 @@ class TranslationTest extends FieldKernelTestBase { } // Test default values. - $field_name_default = Unicode::strtolower($this->randomMachineName() . '_field_name'); + $field_name_default = mb_strtolower($this->randomMachineName() . '_field_name'); $field_storage_definition = $this->fieldStorageDefinition; $field_storage_definition['field_name'] = $field_name_default; $field_storage = FieldStorageConfig::create($field_storage_definition);