Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / editor / tests / src / Kernel / EditorFilterIntegrationTest.php
index 30f36e5a7295eaf28cb47e4af481110e296d5dea..c7a9b9ad5ba2b29bdf5b14b475baf05f1bd95d01 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\editor\Kernel;
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\editor\Entity\Editor;
 use Drupal\filter\Entity\FilterFormat;
 use Drupal\KernelTests\KernelTestBase;
@@ -25,7 +24,7 @@ class EditorFilterIntegrationTest extends KernelTestBase {
   public function testTextFormatIntegration() {
     // Create an arbitrary text format.
     $format = FilterFormat::create([
-      'format' => Unicode::strtolower($this->randomMachineName()),
+      'format' => mb_strtolower($this->randomMachineName()),
       'name' => $this->randomString(),
     ]);
     $format->save();