/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $id_mappings = array('d6_node:*' => array(array(array(0), array(0)))); $this->prepareMigrations($id_mappings); $migrations = Migration::loadMultiple(['d6_term_node:*']); array_walk($migrations, [$this, 'executeMigration']); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); /** @var \Drupal\migrate\entity\Migration $migration */ $migrations = entity_load_multiple('migration', array('d6_term_node:*')); foreach ($migrations as $migration) { $executable = new MigrateExecutable($migration, $this); $executable->import(); } }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $id_mappings = array('d6_term_node' => array(array(array(2), array(1))), 'd6_node_revision' => array(array(array(2), array(2)))); $this->prepareMigrations($id_mappings); /** @var \Drupal\migrate\entity\Migration $migration */ $migrations = entity_load_multiple('migration', array('d6_term_node_revision:*')); foreach ($migrations as $migration) { $executable = new MigrateExecutable($migration, $this); $executable->import(); } }