// Change the format, this should update the processed properties.
$entity->summary_field->format = 'no_filters';
$this->
assertSame($value,
(string) $entity->summary_field->processed
);
$this->
assertSame($summary,
(string) $entity->summary_field->summary_processed
);
// Test the generateSampleValue() method.
$entity =
$this->container->
get('entity_type.manager'
) ->
getStorage($entity_type) ->
create();
$entity->summary_field->
generateSampleItems();
$this->
entityValidateAndSave($entity);
} /**
* Creates a text_with_summary field storage and field.
*
* @param string $entity_type
* Entity type for which the field should be created.
*/
protected function createField($entity_type) { // Create a field .
$this->fieldStorage = FieldStorageConfig::
create([