// Set up text editor.
$editor = Editor::
create([ 'format' => 'filtered_html',
'editor' => 'unicorn',
]);
$editor->
save();
// Create a node type for testing.
$type = NodeType::
create(['type' => 'page', 'name' => 'page'
]);
$type->
save();
node_add_body_field($type);
FieldStorageConfig::
create([ 'field_name' => 'description',
'entity_type' => 'node',
'type' => 'editor_test_text_long',
'cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED,
])->
save();
FieldConfig::
create([ 'field_name' => 'description',
'entity_type' => 'node',
'bundle' => 'page',
'label' => 'Description',
])