diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeByNodeTypeTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeByNodeTypeTest.php index cb0b671..3f60458 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeByNodeTypeTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeByNodeTypeTest.php @@ -115,10 +115,10 @@ protected function setUp() { // Add another row with an article node and make sure it is not migrated. foreach ($database_contents as $k => $row) { - foreach (array('nid', 'vid', 'title', 'uid', 'body', 'teaser', 'format', 'timestamp', 'log') as $i => $field) { + foreach (array('nid', 'vid', 'uid', 'title', 'body', 'teaser', 'format', 'timestamp', 'log') as $i => $field) { $this->databaseContents['node_revisions'][$k][$field] = $row[$field]; - // Keep nid and vid. - if ($i > 1) { + // Keep nid, vid and uid. + if ($i > 2) { unset($row[$field]); } } diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeTest.php index 81e84cd..a226b93 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/NodeTest.php @@ -109,10 +109,10 @@ class NodeTest extends MigrateSqlSourceTestCase { */ protected function setUp() { foreach ($this->expectedResults as $k => $row) { - foreach (array('nid', 'vid', 'title', 'uid', 'body', 'teaser', 'log', 'timestamp', 'format') as $i => $field) { + foreach (array('nid', 'vid', 'uid', 'title', 'body', 'teaser', 'log', 'timestamp', 'format') as $i => $field) { $this->databaseContents['node_revisions'][$k][$field] = $row[$field]; - // Keep nid and vid. - if ($i > 1) { + // Keep nid, vid and uid. + if ($i > 2) { unset($row[$field]); } }