namespace Drupal\Tests\filter\Functional;
-use Drupal\Component\Utility\Unicode;
use Drupal\Tests\BrowserTestBase;
use Drupal\user\RoleInterface;
// 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'));