namespace Drupal\Tests\field\Kernel;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Entity\EntityStorageException;
use Drupal\Core\Field\FieldException;
use Drupal\entity_test\Entity\EntityTest;
parent::setUp();
$this->fieldStorageDefinition = [
- 'field_name' => Unicode::strtolower($this->randomMachineName()),
+ 'field_name' => mb_strtolower($this->randomMachineName()),
'entity_type' => 'entity_test',
'type' => 'test_field',
];
* Test creating a field with custom storage set.
*/
public function testCreateFieldCustomStorage() {
- $field_name = Unicode::strtolower($this->randomMachineName());
+ $field_name = mb_strtolower($this->randomMachineName());
\Drupal::state()->set('field_test_custom_storage', $field_name);
$field_storage = FieldStorageConfig::create([