Unverified Commit 698f4703 authored by alexpott's avatar alexpott

Issue #3017119 by phenaproxima: SourcePluginBase::next() calls Row constructor incorrectly

(cherry picked from commit 30cfcd03)
parent 2b93e802
......@@ -353,7 +353,7 @@ public function next() {
$row_data = $this->getIterator()->current() + $this->configuration;
$row = new Row($row_data, $this->migration->getSourcePlugin()->getIds(), $this->migration->getDestinationIds());
$row = new Row($row_data, $this->getIds());
// Populate the source key for this row.
$this->currentSourceIds = $row->getSourceIdValues();
......@@ -45,6 +45,11 @@ public function testEmbeddedData() {
$results = [];
/** @var \Drupal\migrate\Row $row */
foreach ($source as $row) {
// The plugin should not mark any rows as stubs. We need to use
// assertSame() here because assertFalse() will pass falsy values (e.g.,
// empty arrays).
$this->assertSame(FALSE, $row->isStub());
$data_row = $row->getSource();
// The "data" row returned by getSource() also includes all source
// configuration - we remove it so we see only the data itself.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment