namespace Drupal\Tests\field\Kernel;
-use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
$cardinality = $this->fieldTestData->field_storage->getCardinality();
// Create a new bundle.
- $new_bundle = 'test_bundle_' . Unicode::strtolower($this->randomMachineName());
+ $new_bundle = 'test_bundle_' . mb_strtolower($this->randomMachineName());
entity_test_create_bundle($new_bundle, NULL, $entity_type);
// Add a field to that bundle.
$this->createFieldWithStorage('', $entity_type);
// Create a new bundle.
- $new_bundle = 'test_bundle_' . Unicode::strtolower($this->randomMachineName());
+ $new_bundle = 'test_bundle_' . mb_strtolower($this->randomMachineName());
entity_test_create_bundle($new_bundle, NULL, $entity_type);
// Add a field to that bundle.
FieldConfig::create($this->fieldTestData->field_definition)->save();
// Create a second field for the test bundle
- $field_name = Unicode::strtolower($this->randomMachineName() . '_field_name');
+ $field_name = mb_strtolower($this->randomMachineName() . '_field_name');
$field_storage = [
'field_name' => $field_name,
'entity_type' => $entity_type,