$this->
assertNull($field->
getSetting('datetime_type'
));
// Assert node and user reference fields.
$field = FieldStorageConfig::
load('node.field_node_reference'
);
$this->
assertEquals('node',
$field->
getSetting('target_type'
));
$field = FieldStorageConfig::
load('node.field_user_reference'
);
$this->
assertEquals('user',
$field->
getSetting('target_type'
));
// Make sure a datetime field with a todate is now a daterange type.
$field = FieldStorageConfig::
load('node.field_event'
);
$this->
assertSame('daterange',
$field->
getType());
$this->
assertSame('datetime_range',
$field->
getTypeProvider());
$this->
assertEquals('datetime',
$field->
getSetting('datetime_type'
));
// Test the migration of text fields with different text processing.
// All text and text_long field bases that have only plain text instances
// should be migrated to string and string_long fields.
// All text_with_summary field bases that have only plain text instances
// should not have been migrated since there's no such thing as a
// string_with_summary field.
$this->
assertEntity('node.field_text_plain', 'string', TRUE, 1
);
$this->
assertEntity('node.field_text_long_plain', 'string_long', TRUE, 1
);
$this->
assertNull(FieldStorageConfig::
load('node.field_text_sum_plain'
));