X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FKernel%2FCommentIntegrationTest.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FKernel%2FCommentIntegrationTest.php;h=88311994c4d5a57a887c22ede76ac67749f3153d;hp=af730346cbfe01db7d0de522a0f0549a69c7d691;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php b/web/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php index af730346c..88311994c 100644 --- a/web/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php +++ b/web/core/modules/comment/tests/src/Kernel/CommentIntegrationTest.php @@ -3,7 +3,6 @@ namespace Drupal\Tests\comment\Kernel; use Drupal\comment\Entity\CommentType; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Database\Database; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\Entity\Entity\EntityViewMode; @@ -47,7 +46,7 @@ class CommentIntegrationTest extends KernelTestBase { * @see CommentDefaultFormatter::calculateDependencies() */ public function testViewMode() { - $mode = Unicode::strtolower($this->randomMachineName()); + $mode = mb_strtolower($this->randomMachineName()); // Create a new comment view mode and a view display entity. EntityViewMode::create([ 'id' => "comment.$mode", @@ -64,7 +63,7 @@ class CommentIntegrationTest extends KernelTestBase { FieldStorageConfig::create([ 'entity_type' => 'entity_test', 'type' => 'comment', - 'field_name' => $field_name = Unicode::strtolower($this->randomMachineName()), + 'field_name' => $field_name = mb_strtolower($this->randomMachineName()), 'settings' => [ 'comment_type' => 'comment', ],