summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorAlex Pott2018-02-12 10:27:13 (GMT)
committerAlex Pott2018-02-12 10:27:13 (GMT)
commite96ab4e1470296b852cc9d95865e9a67f7299736 (patch)
treeb08917584b51392dd215ad51764dfb0f0404a541 /core/modules/migrate_drupal
parent4aa88100722dd78ac32dfb639cb4f047e5aa0f7d (diff)
Issue #2817833 by Jo Fitzgerald, chiranjeeb2410, ckaotik, vaplas, svendecabooter, aleevas, bhanuprakashnani, heddn, quietone, mikeryan, alexpott, catch: Delay sql map table creation
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php10
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php10
2 files changed, 12 insertions, 8 deletions
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
index 860f576..bee030e 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
@@ -60,8 +60,9 @@ class MigrateDrupal6AuditIdsTest extends MigrateDrupal6TestBase {
// Insert data in the d6_node:page migration mappping table to simulate a
// previously migrated node.
- $table_name = $this->getMigration('d6_node:page')->getIdMap()->mapTableName();
- $this->container->get('database')->insert($table_name)
+ $id_map = $this->getMigration('d6_node:page')->getIdMap();
+ $table_name = $id_map->mapTableName();
+ $id_map->getDatabase()->insert($table_name)
->fields([
'source_ids_hash' => 1,
'sourceid1' => 1,
@@ -157,8 +158,9 @@ class MigrateDrupal6AuditIdsTest extends MigrateDrupal6TestBase {
// Insert data in the d6_node_revision:page migration mappping table to
// simulate a previously migrated node revison.
- $table_name = $this->getMigration('d6_node_revision:page')->getIdMap()->mapTableName();
- $this->container->get('database')->insert($table_name)
+ $id_map = $this->getMigration('d6_node_revision:page')->getIdMap();
+ $table_name = $id_map->mapTableName();
+ $id_map->getDatabase()->insert($table_name)
->fields([
'source_ids_hash' => 1,
'sourceid1' => 1,
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
index 351ab43..d12445b 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
@@ -60,8 +60,9 @@ class MigrateDrupal7AuditIdsTest extends MigrateDrupal7TestBase {
// Insert data in the d7_node:page migration mappping table to simulate a
// previously migrated node.
- $table_name = $this->getMigration('d7_node:page')->getIdMap()->mapTableName();
- $this->container->get('database')->insert($table_name)
+ $id_map = $this->getMigration('d7_node:page')->getIdMap();
+ $table_name = $id_map->mapTableName();
+ $id_map->getDatabase()->insert($table_name)
->fields([
'source_ids_hash' => 1,
'sourceid1' => 1,
@@ -156,8 +157,9 @@ class MigrateDrupal7AuditIdsTest extends MigrateDrupal7TestBase {
// Insert data in the d7_node_revision:page migration mappping table to
// simulate a previously migrated node revison.
- $table_name = $this->getMigration('d7_node_revision:page')->getIdMap()->mapTableName();
- $this->container->get('database')->insert($table_name)
+ $id_map = $this->getMigration('d7_node_revision:page')->getIdMap();
+ $table_name = $id_map->mapTableName();
+ $id_map->getDatabase()->insert($table_name)
->fields([
'source_ids_hash' => 1,
'sourceid1' => 1,