Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / tests / modules / entity_test_update / entity_test_update.module
index 5b32eb8863f2cc758af448f370dbb6b1411c05de..bd674dd7a6baf9c7d552a28b0a8055cdfd235ac2 100644 (file)
@@ -79,6 +79,11 @@ function entity_test_update_entity_presave(EntityInterface $entity) {
  *   (e.g. content_translation_status);
  * - 52 more test entities (with the IDs 51 - 102) crated, translated and saved.
  *
+ * The 'drupal-8.0.0-rc1-filled.standard.entity_test_update_mul_rev.php.gz' db
+ * dump was created like the multilingual one described above, with one change:
+ * The annotation of the entity_test_update entity type was also manually edited
+ * in order to make it revisionable.
+ *
  * @param int $start
  *   (optional) The entity ID to start from. Defaults to 1.
  * @param int $end
@@ -98,13 +103,15 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
       'id' => $i,
       'name' => $i,
       'test_single_property' => $i . ' - test single property',
-      'test_multiple_properties' => [[
-        'value1' => $i . ' - test multiple properties - value1',
-        'value2' => $i . ' - test multiple properties - value2',
-      ]],
+      'test_multiple_properties' => [
+        [
+          'value1' => $i . ' - test multiple properties - value1',
+          'value2' => $i . ' - test multiple properties - value2',
+        ],
+      ],
       'test_single_property_multiple_values' => [
         ['value' => $i . ' - test single property multiple values 0'],
-        ['value' => $i . ' - test single property multiple values 1']
+        ['value' => $i . ' - test single property multiple values 1'],
       ],
       'test_multiple_properties_multiple_values' => [
         [
@@ -114,7 +121,7 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
         [
           'value1' => $i . ' - test multiple properties multiple values - value1 1',
           'value2' => $i . ' - test multiple properties multiple values - value2 1',
-        ]
+        ],
       ],
       'test_non_rev_field' => $i . ' - test non-revisionable field',
       'test_non_mul_field' => $i . ' - test non-translatable field',
@@ -127,7 +134,7 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
         [
           'value1' => $i . ' - field test configurable field - value1 1',
           'value2' => $i . ' - field test configurable field - value2 1',
-        ]
+        ],
       ],
       'test_entity_base_field_info' => $i . ' - test entity base field info',
     ]);
@@ -136,13 +143,15 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
       $entity->addTranslation('ro', [
         'name' => $i . ' - ro',
         'test_single_property' => $i . ' - test single property - ro',
-        'test_multiple_properties' => [[
-          'value1' => $i . ' - test multiple properties - value1 - ro',
-          'value2' => $i . ' - test multiple properties - value2 - ro',
-        ]],
+        'test_multiple_properties' => [
+          [
+            'value1' => $i . ' - test multiple properties - value1 - ro',
+            'value2' => $i . ' - test multiple properties - value2 - ro',
+          ],
+        ],
         'test_single_property_multiple_values' => [
           ['value' => $i . ' - test single property multiple values 0 - ro'],
-          ['value' => $i . ' - test single property multiple values 1 - ro']
+          ['value' => $i . ' - test single property multiple values 1 - ro'],
         ],
         'test_multiple_properties_multiple_values' => [
           [
@@ -152,7 +161,7 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
           [
             'value1' => $i . ' - test multiple properties multiple values - value1 1 - ro',
             'value2' => $i . ' - test multiple properties multiple values - value2 1 - ro',
-          ]
+          ],
         ],
         'test_non_rev_field' => $i . ' - test non-revisionable field - ro',
         'field_test_configurable_field' => [
@@ -163,7 +172,7 @@ function _entity_test_update_create_test_entities($start = 1, $end = 50, $add_tr
           [
             'value1' => $i . ' - field test configurable field - value1 1 - ro',
             'value2' => $i . ' - field test configurable field - value2 1 - ro',
-          ]
+          ],
         ],
         'test_entity_base_field_info' => $i . ' - test entity base field info - ro',
       ]);