Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate/tests/src/Kernel/MigrateEmbeddedDataTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
| author | Chris Cannam |
|---|---|
| date | Thu, 28 Feb 2019 13:21:36 +0000 |
| parents | 4c8ae668cc8c |
| children |
comparison
equal
deleted
inserted
replaced
| 16:c2387f117808 | 17:129ea1e6d783 |
|---|---|
| 43 | 43 |
| 44 // Validate the plugin returns the source data that was provided. | 44 // Validate the plugin returns the source data that was provided. |
| 45 $results = []; | 45 $results = []; |
| 46 /** @var \Drupal\migrate\Row $row */ | 46 /** @var \Drupal\migrate\Row $row */ |
| 47 foreach ($source as $row) { | 47 foreach ($source as $row) { |
| 48 // The plugin should not mark any rows as stubs. We need to use | |
| 49 // assertSame() here because assertFalse() will pass falsy values (e.g., | |
| 50 // empty arrays). | |
| 51 $this->assertSame(FALSE, $row->isStub()); | |
| 52 | |
| 48 $data_row = $row->getSource(); | 53 $data_row = $row->getSource(); |
| 49 // The "data" row returned by getSource() also includes all source | 54 // The "data" row returned by getSource() also includes all source |
| 50 // configuration - we remove it so we see only the data itself. | 55 // configuration - we remove it so we see only the data itself. |
| 51 unset($data_row['plugin']); | 56 unset($data_row['plugin']); |
| 52 unset($data_row['data_rows']); | 57 unset($data_row['data_rows']); |
