namespace Drupal\Tests\node\Functional;
-use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
$this->contentAdminUser = $this->drupalCreateUser(['access content', 'administer content types', 'administer node fields']);
// Add a custom field to the page content type.
- $this->fieldName = Unicode::strtolower($this->randomMachineName() . '_field_name');
+ $this->fieldName = mb_strtolower($this->randomMachineName() . '_field_name');
FieldStorageConfig::create([
'field_name' => $this->fieldName,
'entity_type' => 'node',
- 'type' => 'text'
+ 'type' => 'text',
])->save();
FieldConfig::create([
'field_name' => $this->fieldName,