namespace Drupal\Tests\filter\Functional;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Url;
use Drupal\filter\Entity\FilterFormat;
use Drupal\node\Entity\Node;
// Add text format.
$this->drupalGet('admin/config/content/formats');
$this->clickLink('Add text format');
- $format_id = Unicode::strtolower($this->randomMachineName());
+ $format_id = mb_strtolower($this->randomMachineName());
$name = $this->randomMachineName();
$edit = [
'format' => $format_id,
// Add format.
$edit = [];
- $edit['format'] = Unicode::strtolower($this->randomMachineName());
+ $edit['format'] = mb_strtolower($this->randomMachineName());
$edit['name'] = $this->randomMachineName();
$edit['roles[' . RoleInterface::AUTHENTICATED_ID . ']'] = 1;
$edit['filters[' . $second_filter . '][status]'] = TRUE;
*/
public function testDisabledFormat() {
// Create a node type and add a standard body field.
- $node_type = NodeType::create(['type' => Unicode::strtolower($this->randomMachineName())]);
+ $node_type = NodeType::create(['type' => mb_strtolower($this->randomMachineName())]);
$node_type->save();
node_add_body_field($node_type, $this->randomString());
// Create a text format with a filter that returns a static string.
$format = FilterFormat::create([
'name' => $this->randomString(),
- 'format' => $format_id = Unicode::strtolower($this->randomMachineName()),
+ 'format' => $format_id = mb_strtolower($this->randomMachineName()),
]);
$format->setFilterConfig('filter_static_text', ['status' => TRUE]);
$format->save();