diff --git a/core/modules/migrate/src/Tests/MigrateTestBase.php b/core/modules/migrate/src/Tests/MigrateTestBase.php index 1ed738fe7ff..764c49e79c6 100644 --- a/core/modules/migrate/src/Tests/MigrateTestBase.php +++ b/core/modules/migrate/src/Tests/MigrateTestBase.php @@ -104,21 +104,20 @@ abstract class MigrateTestBase extends WebTestBase implements MigrateMessageInte } /** - * Prepare the id mappings. + * Prepare any dependent migrations. * * @param array $id_mappings * A list of id mappings keyed by migration ids. Each id mapping is a list * of two arrays, the first are source ids and the second are destination * ids. */ - protected function prepareIdMappings(array $id_mappings) { + protected function prepareMigrations(array $id_mappings) { /** @var \Drupal\migrate\Entity\MigrationInterface[] $migrations */ $migrations = entity_load_multiple('migration', array_keys($id_mappings)); foreach ($id_mappings as $migration_id => $data) { $migration = $migrations[$migration_id]; - // @TODO, rename prepareIdMappings() in https://drupal.org/node/2315489 - // which will make the position of this more appropriate. + // Mark the dependent migrations as complete. $migration->setMigrationResult(MigrationInterface::RESULT_COMPLETED); $id_map = $migration->getIdMap(); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorItemTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorItemTest.php index 1c9839874fb..e2e8c2cf495 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorItemTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateAggregatorItemTest.php @@ -32,7 +32,7 @@ class MigrateAggregatorItemTest extends MigrateDrupalTestBase { array(array(5), array(5)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $entity = entity_create('aggregator_feed', array( 'fid' => 5, diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php index ba48b43a53b..95362e6a688 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockContentTest.php @@ -27,7 +27,7 @@ class MigrateBlockContentTest extends MigrateDrupalTestBase { */ public function setUp() { parent::setUp(); - $this->prepareIdMappings(array( + $this->prepareMigrations(array( 'd6_filter_format' => array( array(array(2), array('full_html')) ) diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockTest.php index 70d92601855..4beb85b0693 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBlockTest.php @@ -46,7 +46,7 @@ class MigrateBlockTest extends MigrateDrupalTestBase { $entity->enforceIsNew(TRUE); $entity->save(); } - $this->prepareIdMappings(array( + $this->prepareMigrations(array( 'd6_custom_block' => array( array(array(10), array(1)), array(array(11), array(2)), diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateBookTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateBookTest.php index d944d991e0a..33f36b2355f 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateBookTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateBookTest.php @@ -35,7 +35,7 @@ class MigrateBookTest extends MigrateDrupalTestBase { $entity->save(); $id_mappings['d6_node'][] = array(array($i), array($i)); } - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); // Load database dumps to provide source data. $dumps = array( $this->getDumpDirectory() . '/Drupal6Book.php', diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldRevisionTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldRevisionTest.php index 7dbe18d7ab9..10a8b371b47 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldRevisionTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldRevisionTest.php @@ -63,7 +63,7 @@ class MigrateCckFieldRevisionTest extends MigrateNodeTestBase { array(array(1), array(1)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $dumps = array( $this->getDumpDirectory() . '/Drupal6NodeRevision.php', ); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php index de5ce86bb37..15d496eb053 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php @@ -84,7 +84,7 @@ class MigrateCckFieldValuesTest extends MigrateNodeTestBase { array(array(2), array(2)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migrations = entity_load_multiple('migration', array('d6_cck_field_values:*')); foreach ($migrations as $migration) { diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentTest.php index 731515d7ce5..b048385c20d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentTest.php @@ -53,7 +53,7 @@ class MigrateCommentTest extends MigrateDrupalTestBase { 'd6_comment_entity_display' => array(array(array('story'), array('node', 'story', 'default', 'comment'))), 'd6_comment_entity_form_display' => array(array(array('story'), array('node', 'story', 'default', 'comment'))), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); \Drupal::service('comment.manager')->addDefaultField('node', 'story'); /** @var \Drupal\migrate\entity\Migration $migration */ diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableDisplayBase.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableDisplayBase.php index 0a50b3e716a..9c967f59ee8 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableDisplayBase.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableDisplayBase.php @@ -74,7 +74,7 @@ abstract class MigrateCommentVariableDisplayBase extends MigrateDrupalTestBase { array(array('page'), array('node', 'comment', 'page')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migration = entity_load('migration', static::MIGRATION); $this->prepare($migration, $this->dumps); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php index 7922ae95db3..c62937dc14a 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableEntityFormDisplaySubjectTest.php @@ -42,7 +42,7 @@ class MigrateCommentVariableEntityFormDisplaySubjectTest extends MigrateDrupalTe array(array('comment'), array('comment_no_subject')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migration = entity_load('migration', 'd6_comment_entity_form_display_subject'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableFieldTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableFieldTest.php index 68beea31601..dcfafbc2124 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableFieldTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableFieldTest.php @@ -40,7 +40,7 @@ class MigrateCommentVariableFieldTest extends MigrateDrupalTestBase { array(array('comment'), array('comment_no_subject')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migration = entity_load('migration', 'd6_comment_field'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableInstanceTest.php index 2cc52931e6b..83736cfe1ef 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCommentVariableInstanceTest.php @@ -33,7 +33,7 @@ class MigrateCommentVariableInstanceTest extends MigrateDrupalTestBase { array(array('page'), array('page')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); foreach (array('page', 'story') as $type) { entity_create('node_type', array('type' => $type))->save(); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php index 3f9b521e4b2..8ef2a13197f 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateContactConfigsTest.php @@ -40,7 +40,7 @@ class MigrateContactConfigsTest extends MigrateDrupalTestBase { array(array(2), array('some_other_category')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_contact_settings'); $dumps = array( $this->getDumpDirectory() . '/Drupal6ContactSettings.php', diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldFormatterSettingsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldFormatterSettingsTest.php index a67ad86a43b..716ae49bc46 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldFormatterSettingsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldFormatterSettingsTest.php @@ -60,7 +60,7 @@ class MigrateFieldFormatterSettingsTest extends MigrateDrupalTestBase { array(array('field_test_datetime'), array('node', 'field_test_datetime')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_field_formatter_settings'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldInstanceTest.php index 9399da87e50..2781ad2cbc7 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldInstanceTest.php @@ -60,7 +60,7 @@ class MigrateFieldInstanceTest extends MigrateDrupalTestBase { array(array('test_page'), array('test_page')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); entity_create('node_type', array('type' => 'page'))->save(); entity_create('node_type', array('type' => 'story'))->save(); entity_create('node_type', array('type' => 'test_page'))->save(); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php index c27320b7d24..6927f73bc34 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php @@ -60,7 +60,7 @@ class MigrateFieldWidgetSettingsTest extends MigrateDrupalTestBase { array(array('field_test_datetime'), array('node', 'field_test_datetime')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_field_instance_widget_settings'); $dumps = array( $this->getDumpDirectory() . '/Drupal6FieldInstance.php', diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeRevisionTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeRevisionTest.php index 65b6e7bfb11..154b4c28c9a 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeRevisionTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeRevisionTest.php @@ -26,7 +26,7 @@ class MigrateNodeRevisionTest extends MigrateNodeTestBase { array(array(1), array(1)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $dumps = array( $this->getDumpDirectory() . '/Drupal6NodeRevision.php', diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeTestBase.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeTestBase.php index 746023ec38c..b45a6736b6c 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeTestBase.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeTestBase.php @@ -47,7 +47,7 @@ abstract class MigrateNodeTestBase extends MigrateDrupalTestBase { ), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_node_settings'); $migration->setMigrationResult(MigrationInterface::RESULT_COMPLETED); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateProfileValuesTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateProfileValuesTest.php index 158cfc97ad6..8184dcef020 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateProfileValuesTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateProfileValuesTest.php @@ -123,7 +123,7 @@ class MigrateProfileValuesTest extends MigrateDrupalTestBase { array(array(15), array(15)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); // Load database dumps to provide source data. $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyTermTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyTermTest.php index d4f253e5620..d3f12b8743b 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyTermTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateTaxonomyTermTest.php @@ -25,7 +25,7 @@ class MigrateTaxonomyTermTest extends MigrateDrupalTestBase { */ protected function setUp() { parent::setUp(); - $this->prepareIdMappings(array( + $this->prepareMigrations(array( 'd6_taxonomy_vocabulary' => array( array(array(1), array('vocabulary_1_i_0_')), array(array(2), array('vocabulary_2_i_1_')), diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeRevisionTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeRevisionTest.php index 2dd4419a2cd..6992929fa20 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeRevisionTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeRevisionTest.php @@ -29,7 +29,7 @@ class MigrateTermNodeRevisionTest extends MigrateTermNodeTestBase { array(array(2), array(2)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migrations = entity_load_multiple('migration', array('d6_term_node_revision:*')); foreach ($migrations as $migration) { diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeTestBase.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeTestBase.php index 47ea02e8381..64886f72cd8 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeTestBase.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateTermNodeTestBase.php @@ -67,7 +67,7 @@ abstract class MigrateTermNodeTestBase extends MigrateDrupalTestBase { array(array(2), array(2)), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $vids = array(1, 2, 3); for ($i = 1; $i <= 2; $i++) { diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadBase.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadBase.php index bbe19971f42..b7e7f0915e3 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadBase.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadBase.php @@ -67,7 +67,7 @@ abstract class MigrateUploadBase extends MigrateDrupalTestBase { array(array(1), array(1)), array(array(2), array(2)), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $vids = array(1, 2, 3); for ($i = 1; $i <= 2; $i++) { $node = entity_create('node', array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityDisplayTest.php index 29e289035c8..b967b0a87fb 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityDisplayTest.php @@ -39,7 +39,7 @@ class MigrateUploadEntityDisplayTest extends MigrateDrupalTestBase { array(array(1), array('node', 'page', 'upload')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_upload_entity_display'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityFormDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityFormDisplayTest.php index 5141fb9f2dc..c3f6309ce59 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityFormDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadEntityFormDisplayTest.php @@ -39,7 +39,7 @@ class MigrateUploadEntityFormDisplayTest extends MigrateDrupalTestBase { array(array(1), array('node', 'page', 'upload')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_upload_entity_form_display'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadInstanceTest.php index 708268bc51a..b807b211a76 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUploadInstanceTest.php @@ -39,7 +39,7 @@ class MigrateUploadInstanceTest extends MigrateDrupalTestBase { array(array('story'), array('story')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); foreach (array('page', 'story') as $type) { entity_create('node_type', array('type' => $type))->save(); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityDisplayTest.php index f55b4227045..d9e61a13ad5 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityDisplayTest.php @@ -35,7 +35,7 @@ class MigrateUserPictureEntityDisplayTest extends MigrateDrupalTestBase { array(array(1), array('user', 'user', 'user_picture')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_user_picture_entity_display'); $executable = new MigrateExecutable($migration, $this); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityFormDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityFormDisplayTest.php index 51ffe950a57..388ef4f086c 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityFormDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureEntityFormDisplayTest.php @@ -34,7 +34,7 @@ class MigrateUserPictureEntityFormDisplayTest extends MigrateDrupalTestBase { array(array(1), array('user', 'user', 'user_picture')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_user_picture_entity_form_display'); $executable = new MigrateExecutable($migration, $this); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureInstanceTest.php index 6e0097847f0..78c1a20e83e 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserPictureInstanceTest.php @@ -35,7 +35,7 @@ class MigrateUserPictureInstanceTest extends MigrateDrupalTestBase { array(array('user_upload'), array('name', 'bundle')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); entity_create('field_storage_config', array( 'entity_type' => 'user', 'name' => 'user_picture', diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserProfileFieldInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserProfileFieldInstanceTest.php index f1687b4b8a0..2093ed4cd66 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserProfileFieldInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserProfileFieldInstanceTest.php @@ -30,7 +30,7 @@ class MigrateUserProfileFieldInstanceTest extends MigrateDrupalTestBase { array(array(1), array('user', 'profile_color')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $this->createFields(); /** @var \Drupal\migrate\entity\Migration $migration */ $migration = entity_load('migration', 'd6_user_profile_field_instance'); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserRoleTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserRoleTest.php index 52ad84a1a68..906e0e581a5 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserRoleTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserRoleTest.php @@ -36,7 +36,7 @@ class MigrateUserRoleTest extends MigrateDrupalTestBase { array(array(2), array('full_html')) ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migration = entity_load('migration', 'd6_user_role'); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php index 8bdbca1ee90..2c72e19b690 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateUserTest.php @@ -115,7 +115,7 @@ class MigrateUserTest extends MigrateDrupalTestBase { ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); // Migrate users. $migration = entity_load('migration', 'd6_user'); diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityDisplayTest.php index 475e26dfc0e..42fd56581bf 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityDisplayTest.php @@ -57,7 +57,7 @@ class MigrateVocabularyEntityDisplayTest extends MigrateDrupalTestBase { array(array(4, 'page'), array('node', 'page', 'tags')), ) ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_vocabulary_entity_display'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityFormDisplayTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityFormDisplayTest.php index 25a7c816e34..cd8263e4f5d 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityFormDisplayTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyEntityFormDisplayTest.php @@ -57,7 +57,7 @@ class MigrateVocabularyEntityFormDisplayTest extends MigrateDrupalTestBase { array(array(4, 'page'), array('node', 'page', 'tags')), ) ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); $migration = entity_load('migration', 'd6_vocabulary_entity_form_display'); $dumps = array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldInstanceTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldInstanceTest.php index 25a485a07b9..6e54c095bb9 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldInstanceTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldInstanceTest.php @@ -44,7 +44,7 @@ class MigrateVocabularyFieldInstanceTest extends MigrateDrupalTestBase { array(array(4), array('node', 'tags')), ) ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); // Create the vocab. entity_create('taxonomy_vocabulary', array( diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldTest.php index d593f97edd5..f1e1d5f1245 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateVocabularyFieldTest.php @@ -36,7 +36,7 @@ class MigrateVocabularyFieldTest extends MigrateDrupalTestBase { array(array(4), array('tags')), ), ); - $this->prepareIdMappings($id_mappings); + $this->prepareMigrations($id_mappings); entity_create('taxonomy_vocabulary', array( 'name' => 'Test Vocabulary',