private function MigrateSqlIdMapTest::getIdMapContents in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/tests/src/Unit/MigrateSqlIdMapTest.php \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest::getIdMapContents()
4 calls to MigrateSqlIdMapTest::getIdMapContents()
- MigrateSqlIdMapTest::testGetRowsNeedingUpdate in core/modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php 
- Tests the getRowsNeedingUpdate method for rows that need an update.
- MigrateSqlIdMapTest::testPrepareUpdate in core/modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php 
- Tests prepareUpdate().
- MigrateSqlIdMapTest::testSaveIdMapping in core/modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php 
- Tests the ID mapping method.
- MigrateSqlIdMapTest::testSetUpdate in core/modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php 
- Tests setting a row source_row_status to STATUS_NEEDS_UPDATE.
File
- core/modules/ migrate/ tests/ src/ Unit/ MigrateSqlIdMapTest.php, line 792 
- Contains \Drupal\Tests\migrate\Unit\MigrateSqlIdMapTest.
Class
- MigrateSqlIdMapTest
- Tests the SQL ID map plugin.
Namespace
Drupal\Tests\migrate\UnitCode
private function getIdMapContents() {
  $result = $this->database
    ->select('migrate_map_sql_idmap_test', 't')
    ->fields('t')
    ->execute();
  // The return value needs to be countable, or it will fail certain
  // assertions. iterator_to_array() will not suffice because it won't
  // respect the PDO fetch mode, if specified.
  $contents = [];
  foreach ($result as $row) {
    $contents[] = (array) $row;
  }
  return $contents;
}