Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / tests / src / Functional / FilterHooksTest.php
index 5ff4a8a487d2fdff7b3f06baf44cf819c2e9b41c..420a7b3855601b84cdaa110ecd7c16ae8b81ef95 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\filter\Functional;
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\Tests\BrowserTestBase;
 use Drupal\user\RoleInterface;
 
@@ -38,7 +37,7 @@ class FilterHooksTest extends BrowserTestBase {
     // Add a text format.
     $name = $this->randomMachineName();
     $edit = [];
-    $edit['format'] = Unicode::strtolower($this->randomMachineName());
+    $edit['format'] = mb_strtolower($this->randomMachineName());
     $edit['name'] = $name;
     $edit['roles[' . RoleInterface::ANONYMOUS_ID . ']'] = 1;
     $this->drupalPostForm('admin/config/content/formats/add', $edit, t('Save configuration'));