X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FFieldCrudTest.php;fp=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FFieldCrudTest.php;h=6068d316fba78ca9c06d89612fea6e211d30f3f2;hp=6407be75203b98a27cb35b09d5f30f7791c26512;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/field/tests/src/Kernel/FieldCrudTest.php b/web/core/modules/field/tests/src/Kernel/FieldCrudTest.php index 6407be752..6068d316f 100644 --- a/web/core/modules/field/tests/src/Kernel/FieldCrudTest.php +++ b/web/core/modules/field/tests/src/Kernel/FieldCrudTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\field\Kernel; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Entity\EntityStorageException; use Drupal\Core\Field\FieldException; use Drupal\entity_test\Entity\EntityTest; @@ -43,7 +42,7 @@ class FieldCrudTest extends FieldKernelTestBase { parent::setUp(); $this->fieldStorageDefinition = [ - 'field_name' => Unicode::strtolower($this->randomMachineName()), + 'field_name' => mb_strtolower($this->randomMachineName()), 'entity_type' => 'entity_test', 'type' => 'test_field', ]; @@ -199,7 +198,7 @@ class FieldCrudTest extends FieldKernelTestBase { * Test creating a field with custom storage set. */ public function testCreateFieldCustomStorage() { - $field_name = Unicode::strtolower($this->randomMachineName()); + $field_name = mb_strtolower($this->randomMachineName()); \Drupal::state()->set('field_test_custom_storage', $field_name); $field_storage = FieldStorageConfig::create([