X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FBoolean%2FBooleanFormatterTest.php;fp=web%2Fcore%2Fmodules%2Ffield%2Ftests%2Fsrc%2FKernel%2FBoolean%2FBooleanFormatterTest.php;h=b2fb19384c86c30f9a393f84030b791647199317;hp=94f5bc6c302898f16f57dd4c62fc857d9b9dbd5f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php b/web/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php index 94f5bc6c3..b2fb19384 100644 --- a/web/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php +++ b/web/core/modules/field/tests/src/Kernel/Boolean/BooleanFormatterTest.php @@ -2,7 +2,6 @@ namespace Drupal\Tests\field\Kernel\Boolean; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\entity_test\Entity\EntityTest; @@ -55,7 +54,7 @@ class BooleanFormatterTest extends KernelTestBase { $this->entityType = 'entity_test'; $this->bundle = $this->entityType; - $this->fieldName = Unicode::strtolower($this->randomMachineName()); + $this->fieldName = mb_strtolower($this->randomMachineName()); $field_storage = FieldStorageConfig::create([ 'field_name' => $this->fieldName, @@ -115,7 +114,7 @@ class BooleanFormatterTest extends KernelTestBase { $format = [ 'format' => 'custom', 'format_custom_false' => 'FALSE', - 'format_custom_true' => 'TRUE' + 'format_custom_true' => 'TRUE', ]; $data[] = [0, $format, 'FALSE']; $data[] = [1, $format, 'TRUE'];