namespace Drupal\Tests\field\Functional\Boolean;
-use Drupal\Component\Utility\Unicode;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
$label = $this->randomMachineName();
// Create a field with settings to validate.
- $field_name = Unicode::strtolower($this->randomMachineName());
+ $field_name = mb_strtolower($this->randomMachineName());
$this->fieldStorage = FieldStorageConfig::create([
'field_name' => $field_name,
'entity_type' => 'entity_test',
'type' => 'boolean_checkbox',
'settings' => [
'display_label' => FALSE,
- ]
+ ],
])
->save();