comparison core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
24 public static $modules = ['filter']; 24 public static $modules = ['filter'];
25 25
26 /** 26 /**
27 * Field storage entity. 27 * Field storage entity.
28 * 28 *
29 * @var \Drupal\field\Entity\FieldStorageConfig. 29 * @var \Drupal\field\Entity\FieldStorageConfig
30 */ 30 */
31 protected $fieldStorage; 31 protected $fieldStorage;
32 32
33 /** 33 /**
34 * Field entity. 34 * Field entity.
35 * 35 *
36 * @var \Drupal\field\Entity\FieldConfig 36 * @var \Drupal\field\Entity\FieldConfig
37 */ 37 */
38 protected $field; 38 protected $field;
39
40 39
41 protected function setUp() { 40 protected function setUp() {
42 parent::setUp(); 41 parent::setUp();
43 42
44 $this->installEntitySchema('entity_test_rev'); 43 $this->installEntitySchema('entity_test_rev');
104 'field_name' => 'summary_field', 103 'field_name' => 'summary_field',
105 'entity_type' => $entity_type, 104 'entity_type' => $entity_type,
106 'type' => 'text_with_summary', 105 'type' => 'text_with_summary',
107 'settings' => [ 106 'settings' => [
108 'max_length' => 10, 107 'max_length' => 10,
109 ] 108 ],
110 ]); 109 ]);
111 $this->fieldStorage->save(); 110 $this->fieldStorage->save();
112 $this->field = FieldConfig::create([ 111 $this->field = FieldConfig::create([
113 'field_storage' => $this->fieldStorage, 112 'field_storage' => $this->fieldStorage,
114 'bundle' => $entity_type, 113 'bundle' => $entity_type,