update drupal

This commit is contained in:
Tessier
2020-10-15 11:59:37 +02:00
parent ebb5db14b5
commit d8b9162932
558 changed files with 5954 additions and 4475 deletions
+124 -67
View File
@@ -2274,6 +2274,20 @@ $connection->insert('content_field_image')
'field_image_list' => '1',
'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
))
->values(array(
'vid' => '5',
'nid' => '1',
'field_image_fid' => '2',
'field_image_list' => '1',
'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
))
->values(array(
'vid' => '2001',
'nid' => '1',
'field_image_fid' => '2',
'field_image_list' => '1',
'field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
))
->execute();
$connection->schema()->createTable('content_field_multivalue', array(
'fields' => array(
@@ -2389,12 +2403,6 @@ $connection->insert('content_field_test')
'field_test_value' => 'This is a shared text field',
'field_test_format' => '1',
))
->values(array(
'vid' => '2',
'nid' => '1',
'field_test_value' => 'This is a shared text field',
'field_test_format' => '1',
))
->values(array(
'vid' => '3',
'nid' => '2',
@@ -2403,9 +2411,9 @@ $connection->insert('content_field_test')
))
->values(array(
'vid' => '5',
'nid' => '2',
'field_test_value' => NULL,
'field_test_format' => NULL,
'nid' => '1',
'field_test_value' => 'This is a shared text field',
'field_test_format' => '1',
))
->values(array(
'vid' => '12',
@@ -2413,6 +2421,12 @@ $connection->insert('content_field_test')
'field_test_value' => 'text for default value',
'field_test_format' => '1',
))
->values(array(
'vid' => '2001',
'nid' => '1',
'field_test_value' => 'This is a shared text field',
'field_test_format' => '1',
))
->execute();
$connection->schema()->createTable('content_field_test_text_single_checkbox', array(
'fields' => array(
@@ -2470,14 +2484,19 @@ $connection->insert('content_field_test_text_single_checkbox')
))
->values(array(
'vid' => '5',
'nid' => '2',
'field_test_text_single_checkbox_value' => NULL,
'nid' => '1',
'field_test_text_single_checkbox_value' => '0',
))
->values(array(
'vid' => '12',
'nid' => '9',
'field_test_text_single_checkbox_value' => '0',
))
->values(array(
'vid' => '2001',
'nid' => '1',
'field_test_text_single_checkbox_value' => '0',
))
->execute();
$connection->schema()->createTable('content_field_test_two', array(
'fields' => array(
@@ -2534,10 +2553,10 @@ $connection->insert('content_field_test_two')
'field_test_two_value' => '10',
))
->values(array(
'vid' => '2',
'vid' => '1',
'nid' => '1',
'delta' => '0',
'field_test_two_value' => NULL,
'delta' => '1',
'field_test_two_value' => '20',
))
->values(array(
'vid' => '3',
@@ -2547,9 +2566,15 @@ $connection->insert('content_field_test_two')
))
->values(array(
'vid' => '5',
'nid' => '2',
'nid' => '1',
'delta' => '0',
'field_test_two_value' => NULL,
'field_test_two_value' => '10',
))
->values(array(
'vid' => '5',
'nid' => '1',
'delta' => '1',
'field_test_two_value' => '20',
))
->values(array(
'vid' => '12',
@@ -2558,7 +2583,13 @@ $connection->insert('content_field_test_two')
'field_test_two_value' => NULL,
))
->values(array(
'vid' => '1',
'vid' => '2001',
'nid' => '1',
'delta' => '0',
'field_test_two_value' => '10',
))
->values(array(
'vid' => '2001',
'nid' => '1',
'delta' => '1',
'field_test_two_value' => '20',
@@ -3939,38 +3970,6 @@ $connection->insert('content_type_story')
'field_test_datetime_value2' => NULL,
'field_test_string_selectlist_value' => NULL,
))
->values(array(
'nid' => '1',
'vid' => '2',
'uid' => '1',
'field_test_three_value' => '42.42',
'field_test_identical1_value' => '1',
'field_test_identical2_value' => '1',
'field_test_link_url' => 'https://www.drupal.org/project/drupal',
'field_test_link_title' => 'Drupal project page',
'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";',
'field_test_date_value' => '2013-01-02T04:05:00',
'field_test_datestamp_value' => '1391357160',
'field_test_datetime_value' => '2015-03-04 06:07:00',
'field_test_email_email' => 'PrincessRuwenne@example.com',
'field_test_filefield_fid' => NULL,
'field_test_filefield_list' => NULL,
'field_test_filefield_data' => NULL,
'field_test_four_value' => NULL,
'field_test_integer_selectlist_value' => NULL,
'field_test_float_single_checkbox_value' => NULL,
'field_test_decimal_radio_buttons_value' => NULL,
'field_test_phone_value' => NULL,
'field_test_exclude_unset_value' => NULL,
'field_test_exclude_unset_format' => NULL,
'field_test_imagefield_fid' => NULL,
'field_test_imagefield_list' => NULL,
'field_test_imagefield_data' => NULL,
'field_test_text_single_checkbox2_value' => NULL,
'field_test_datestamp_value2' => NULL,
'field_test_datetime_value2' => NULL,
'field_test_string_selectlist_value' => NULL,
))
->values(array(
'nid' => '2',
'vid' => '3',
@@ -4004,33 +4003,33 @@ $connection->insert('content_type_story')
'field_test_string_selectlist_value' => NULL,
))
->values(array(
'nid' => '2',
'nid' => '1',
'vid' => '5',
'uid' => '1',
'field_test_three_value' => '23.20',
'field_test_three_value' => '42.42',
'field_test_identical1_value' => '1',
'field_test_identical2_value' => '1',
'field_test_link_url' => 'http://groups.drupal.org/',
'field_test_link_title' => 'Drupal Groups',
'field_test_link_attributes' => 's:6:"a:0:{}";',
'field_test_date_value' => NULL,
'field_test_datestamp_value' => NULL,
'field_test_datetime_value' => NULL,
'field_test_email_email' => NULL,
'field_test_filefield_fid' => NULL,
'field_test_filefield_list' => NULL,
'field_test_filefield_data' => NULL,
'field_test_link_url' => 'https://www.drupal.org/project/drupal',
'field_test_link_title' => 'Drupal project page',
'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";',
'field_test_date_value' => '2013-01-02T04:05:00',
'field_test_datestamp_value' => '1391357160',
'field_test_datetime_value' => '2015-03-04 06:07:00',
'field_test_email_email' => 'PrincessRuwenne@example.com',
'field_test_filefield_fid' => '5',
'field_test_filefield_list' => '1',
'field_test_filefield_data' => 'a:1:{s:11:"description";s:4:"desc";}',
'field_test_four_value' => NULL,
'field_test_integer_selectlist_value' => NULL,
'field_test_float_single_checkbox_value' => NULL,
'field_test_integer_selectlist_value' => '3412',
'field_test_float_single_checkbox_value' => '3',
'field_test_decimal_radio_buttons_value' => NULL,
'field_test_phone_value' => NULL,
'field_test_exclude_unset_value' => NULL,
'field_test_exclude_unset_format' => NULL,
'field_test_exclude_unset_value' => 'This is a field with exclude unset.',
'field_test_exclude_unset_format' => '1',
'field_test_imagefield_fid' => NULL,
'field_test_imagefield_list' => NULL,
'field_test_imagefield_data' => NULL,
'field_test_text_single_checkbox2_value' => NULL,
'field_test_text_single_checkbox2_value' => 'Hello',
'field_test_datestamp_value2' => NULL,
'field_test_datetime_value2' => NULL,
'field_test_string_selectlist_value' => NULL,
@@ -4067,6 +4066,38 @@ $connection->insert('content_type_story')
'field_test_datetime_value2' => '2015-03-04 06:07:00',
'field_test_string_selectlist_value' => NULL,
))
->values(array(
'nid' => '1',
'vid' => '2001',
'uid' => '1',
'field_test_three_value' => '42.42',
'field_test_identical1_value' => '1',
'field_test_identical2_value' => '1',
'field_test_link_url' => 'https://www.drupal.org/project/drupal',
'field_test_link_title' => 'Drupal project page',
'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";',
'field_test_date_value' => '2013-01-02T04:05:00',
'field_test_datestamp_value' => '1391357160',
'field_test_datetime_value' => '2015-03-04 06:07:00',
'field_test_email_email' => 'PrincessRuwenne@example.com',
'field_test_filefield_fid' => '5',
'field_test_filefield_list' => '1',
'field_test_filefield_data' => 'a:1:{s:11:"description";s:4:"desc";}',
'field_test_four_value' => NULL,
'field_test_integer_selectlist_value' => '3412',
'field_test_float_single_checkbox_value' => '3',
'field_test_decimal_radio_buttons_value' => NULL,
'field_test_phone_value' => NULL,
'field_test_exclude_unset_value' => 'This is a field with exclude unset.',
'field_test_exclude_unset_format' => '1',
'field_test_imagefield_fid' => NULL,
'field_test_imagefield_list' => NULL,
'field_test_imagefield_data' => NULL,
'field_test_text_single_checkbox2_value' => 'Hello',
'field_test_datestamp_value2' => NULL,
'field_test_datetime_value2' => NULL,
'field_test_string_selectlist_value' => NULL,
))
->execute();
$connection->schema()->createTable('content_type_test_page', array(
'fields' => array(
@@ -44470,7 +44501,7 @@ $connection->insert('node')
))
->values(array(
'nid' => '1',
'vid' => '1',
'vid' => '2001',
'type' => 'story',
'language' => '',
'title' => 'Test title rev 3',
@@ -48083,6 +48114,16 @@ $connection->insert('term_node')
'vid' => '3',
'tid' => '3',
))
->values(array(
'nid' => '1',
'vid' => '2001',
'tid' => '1',
))
->values(array(
'nid' => '1',
'vid' => '2001',
'tid' => '2',
))
->values(array(
'nid' => '1',
'vid' => '2001',
@@ -48283,6 +48324,14 @@ $connection->insert('upload')
'list' => '0',
'weight' => '1',
))
->values(array(
'fid' => '1',
'nid' => '1',
'vid' => '5',
'description' => 'file 1-1-1',
'list' => '0',
'weight' => '-1',
))
->values(array(
'fid' => '3',
'nid' => '12',
@@ -48291,6 +48340,14 @@ $connection->insert('upload')
'list' => '0',
'weight' => '0',
))
->values(array(
'fid' => '1',
'nid' => '1',
'vid' => '2001',
'description' => 'file 1-1-1',
'list' => '0',
'weight' => '-1',
))
->execute();
$connection->schema()->createTable('url_alias', array(
'fields' => array(
@@ -4512,6 +4512,36 @@ $connection->insert('field_config')
'translatable' => '1',
'deleted' => '0',
))
->values(array(
'id' => '54',
'field_name' => 'field_termplain',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'storage_type' => 'field_sql_storage',
'storage_module' => 'field_sql_storage',
'storage_active' => '1',
'locked' => '0',
'data' => 'a:7:{s:12:"translatable";s:1:"0";s:12:"entity_types";a:0:{}s:8:"settings";a:3:{s:14:"allowed_values";a:1:{i:0;a:2:{s:10:"vocabulary";s:4:"tags";s:6:"parent";s:1:"0";}}s:21:"options_list_callback";s:29:"title_taxonomy_allowed_values";s:23:"entity_translation_sync";b:0;}s:7:"storage";a:5:{s:4:"type";s:17:"field_sql_storage";s:8:"settings";a:0:{}s:6:"module";s:17:"field_sql_storage";s:6:"active";s:1:"1";s:7:"details";a:1:{s:3:"sql";a:2:{s:18:"FIELD_LOAD_CURRENT";a:1:{s:26:"field_data_field_termplain";a:1:{s:3:"tid";s:19:"field_termplain_tid";}}s:19:"FIELD_LOAD_REVISION";a:1:{s:30:"field_revision_field_termplain";a:1:{s:3:"tid";s:19:"field_termplain_tid";}}}}}s:12:"foreign keys";a:1:{s:3:"tid";a:2:{s:5:"table";s:18:"taxonomy_term_data";s:7:"columns";a:1:{s:3:"tid";s:3:"tid";}}}s:7:"indexes";a:1:{s:3:"tid";a:1:{i:0;s:3:"tid";}}s:2:"id";s:2:"55";}',
'cardinality' => '1',
'translatable' => '1',
'deleted' => '0',
))
->values(array(
'id' => '55',
'field_name' => 'field_termrss',
'type' => 'taxonomy_term_reference',
'module' => 'taxonomy',
'active' => '1',
'storage_type' => 'field_sql_storage',
'storage_module' => 'field_sql_storage',
'storage_active' => '1',
'locked' => '0',
'data' => 'a:7:{s:12:"translatable";i:0;s:12:"entity_types";a:0:{}s:8:"settings";a:3:{s:14:"allowed_values";a:1:{i:0;a:2:{s:10:"vocabulary";s:19:"sujet_de_discussion";s:6:"parent";s:1:"0";}}s:21:"options_list_callback";s:29:"title_taxonomy_allowed_values";s:23:"entity_translation_sync";b:0;}s:7:"storage";a:5:{s:4:"type";s:17:"field_sql_storage";s:8:"settings";a:0:{}s:6:"module";s:17:"field_sql_storage";s:6:"active";s:1:"1";s:7:"details";a:1:{s:3:"sql";a:2:{s:18:"FIELD_LOAD_CURRENT";a:1:{s:24:"field_data_field_termrss";a:1:{s:3:"tid";s:17:"field_termrss_tid";}}s:19:"FIELD_LOAD_REVISION";a:1:{s:28:"field_revision_field_termrss";a:1:{s:3:"tid";s:17:"field_termrss_tid";}}}}}s:12:"foreign keys";a:1:{s:3:"tid";a:2:{s:5:"table";s:18:"taxonomy_term_data";s:7:"columns";a:1:{s:3:"tid";s:3:"tid";}}}s:7:"indexes";a:1:{s:3:"tid";a:1:{i:0;s:3:"tid";}}s:2:"id";s:2:"56";}',
'cardinality' => '1',
'translatable' => '1',
'deleted' => '0',
))
->execute();
$connection->schema()->createTable('field_config_instance', array(
'fields' => array(
@@ -5282,6 +5312,33 @@ $connection->insert('field_config_instance')
'data' => 'a:7:{s:5:"label";s:4:"tree";s:6:"widget";a:5:{s:6:"weight";s:2:"-3";s:4:"type";s:14:"text_textfield";s:6:"module";s:4:"text";s:6:"active";i:1;s:8:"settings";a:1:{s:4:"size";s:2:"60";}}s:8:"settings";a:3:{s:15:"text_processing";s:1:"0";s:18:"user_register_form";b:0;s:23:"entity_translation_sync";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:1;}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}',
'deleted' => '0',
))
->values(array(
'id' => '83',
'field_id' => '1',
'field_name' => 'comment_body',
'entity_type' => 'comment',
'bundle' => 'comment_node_et',
'data' => 'a:6:{s:5:"label";s:7:"Comment";s:8:"settings";a:2:{s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:8:"required";b:1;s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:6:"weight";i:0;s:8:"settings";a:0:{}s:6:"module";s:4:"text";}}s:6:"widget";a:4:{s:4:"type";s:13:"text_textarea";s:8:"settings";a:1:{s:4:"rows";i:5;}s:6:"weight";i:0;s:6:"module";s:4:"text";}s:11:"description";s:0:"";}',
'deleted' => '0',
))
->values(array(
'id' => '84',
'field_id' => '54',
'field_name' => 'field_termplain',
'entity_type' => 'node',
'bundle' => 'blog',
'data' => 'a:6:{s:5:"label";s:9:"termplain";s:6:"widget";a:4:{s:4:"type";s:15:"options_buttons";s:6:"weight";s:2:"15";s:8:"settings";a:0:{}s:6:"module";s:7:"options";}s:8:"settings";a:2:{s:18:"user_register_form";b:0;s:23:"entity_translation_sync";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:29:"taxonomy_term_reference_plain";s:6:"weight";s:2:"13";s:8:"settings";a:0:{}s:6:"module";s:8:"taxonomy";}}s:8:"required";b:0;s:11:"description";s:0:"";}',
'deleted' => '0',
))
->values(array(
'id' => '85',
'field_id' => '55',
'field_name' => 'field_termrss',
'entity_type' => 'node',
'bundle' => 'blog',
'data' => 'a:7:{s:5:"label";s:7:"termrss";s:6:"widget";a:5:{s:6:"weight";s:2:"16";s:4:"type";s:15:"options_buttons";s:6:"module";s:7:"options";s:6:"active";i:1;s:8:"settings";a:0:{}}s:8:"settings";a:2:{s:18:"user_register_form";b:0;s:23:"entity_translation_sync";b:0;}s:7:"display";a:1:{s:7:"default";a:5:{s:5:"label";s:5:"above";s:4:"type";s:36:"taxonomy_term_reference_rss_category";s:6:"weight";s:2:"14";s:8:"settings";a:0:{}s:6:"module";s:8:"taxonomy";}}s:8:"required";i:0;s:11:"description";s:0:"";s:13:"default_value";N;}',
'deleted' => '0',
))
->execute();
$connection->schema()->createTable('field_data_body', array(
'fields' => array(
@@ -8428,6 +8485,128 @@ $connection->insert('field_data_field_tags')
'field_tags_tid' => '17',
))
->execute();
$connection->schema()->createTable('field_data_field_termplain', array(
'fields' => array(
'entity_type' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'bundle' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'deleted' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'entity_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'revision_id' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '32',
'default' => '',
),
'delta' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'field_termplain_tid' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
),
'primary key' => array(
'entity_type',
'deleted',
'entity_id',
'language',
'delta',
),
'mysql_character_set' => 'utf8',
));
$connection->schema()->createTable('field_data_field_termrss', array(
'fields' => array(
'entity_type' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'bundle' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'deleted' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'entity_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'revision_id' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '32',
'default' => '',
),
'delta' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'field_termrss_tid' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
),
'primary key' => array(
'entity_type',
'deleted',
'entity_id',
'language',
'delta',
),
'mysql_character_set' => 'utf8',
));
$connection->schema()->createTable('field_data_field_term_entityreference', array(
'fields' => array(
'entity_type' => array(
@@ -14512,6 +14691,131 @@ $connection->insert('field_revision_field_term_entityreference')
'field_term_entityreference_target_id' => '15',
))
->execute();
$connection->schema()->createTable('field_revision_field_termplain', array(
'fields' => array(
'entity_type' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'bundle' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'deleted' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'entity_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'revision_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '32',
'default' => '',
),
'delta' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'field_termplain_tid' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
),
'primary key' => array(
'entity_type',
'deleted',
'entity_id',
'revision_id',
'language',
'delta',
),
'mysql_character_set' => 'utf8',
));
$connection->schema()->createTable('field_revision_field_termrss', array(
'fields' => array(
'entity_type' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'bundle' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '128',
'default' => '',
),
'deleted' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'entity_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'revision_id' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '32',
'default' => '',
),
'delta' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'field_termrss_tid' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
),
'primary key' => array(
'entity_type',
'deleted',
'entity_id',
'revision_id',
'language',
'delta',
),
'mysql_character_set' => 'utf8',
));
$connection->schema()->createTable('field_revision_field_term_reference', array(
'fields' => array(
'entity_type' => array(
@@ -203,6 +203,8 @@ class FieldDiscoveryTest extends MigrateDrupal7TestBase {
'map' => [
'taxonomy_term_reference' => [
'taxonomy_term_reference_link' => 'entity_reference_label',
'taxonomy_term_reference_plain' => 'entity_reference_label',
'taxonomy_term_reference_rss_category' => 'entity_reference_label',
'i18n_taxonomy_term_reference_link' => 'entity_reference_label',
'entityreference_entity_view' => 'entity_reference_entity_view',
],
@@ -283,7 +285,7 @@ class FieldDiscoveryTest extends MigrateDrupal7TestBase {
$this->assertArrayHasKey('user', $actual_fields['user']);
$this->assertArrayHasKey('test_content_type', $actual_fields['node']);
$this->assertCount(7, $actual_fields['node']);
$this->assertCount(6, $actual_fields['comment']);
$this->assertCount(7, $actual_fields['comment']);
$this->assertCount(22, $actual_fields['node']['test_content_type']);
foreach ($actual_fields as $entity_type_id => $bundles) {
foreach ($bundles as $bundle => $fields) {