X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FFunctional%2FEntityReference%2FEntityReferenceFieldDefaultValueTest.php;fp=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FFunctional%2FEntityReference%2FEntityReferenceFieldDefaultValueTest.php;h=f5d37c2d318c26c5ced3bc4a1165e29ba618d08e;hp=4567bd07e9e72743ef99e7294830c22c5b6c2c8c;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php b/web/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php index 4567bd07e..f5d37c2d3 100644 --- a/web/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php +++ b/web/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldDefaultValueTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\field\Functional\EntityReference; -use Drupal\Component\Utility\Unicode; use Drupal\Tests\SchemaCheckTestTrait; use Drupal\field\Entity\FieldConfig; use Drupal\field\Entity\FieldStorageConfig; @@ -51,7 +50,7 @@ class EntityReferenceFieldDefaultValueTest extends BrowserTestBase { // Create a node to be referenced. $referenced_node = $this->drupalCreateNode(['type' => 'referenced_content']); - $field_name = Unicode::strtolower($this->randomMachineName()); + $field_name = mb_strtolower($this->randomMachineName()); $field_storage = FieldStorageConfig::create([ 'field_name' => $field_name, 'entity_type' => 'node', @@ -114,7 +113,7 @@ class EntityReferenceFieldDefaultValueTest extends BrowserTestBase { $referenced_node_type = $this->drupalCreateContentType(['type' => 'referenced_config_to_delete']); $referenced_node_type2 = $this->drupalCreateContentType(['type' => 'referenced_config_to_preserve']); - $field_name = Unicode::strtolower($this->randomMachineName()); + $field_name = mb_strtolower($this->randomMachineName()); $field_storage = FieldStorageConfig::create([ 'field_name' => $field_name, 'entity_type' => 'node',