namespace Drupal\Tests\block_content\Functional;
use Drupal\block_content\Entity\BlockContent;
-use Drupal\Component\Utility\Unicode;
/**
* Create a block and test block edit functionality.
$body_key = 'body[0][value]';
// Create block to edit.
$edit = [];
- $edit['info[0][value]'] = Unicode::strtolower($this->randomMachineName(8));
+ $edit['info[0][value]'] = mb_strtolower($this->randomMachineName(8));
$edit[$body_key] = $this->randomMachineName(16);
$this->drupalPostForm('block/add/basic', $edit, t('Save'));