$migration =
$plugin_manager->
createStubMigration($plugin_definition);
$this->
assertSame(['required' =>
[], 'optional' =>
['m1', 'm2', 'm3', 'm4', 'm5'
]],
$migration->
getMigrationDependencies(TRUE
));
} /**
* Tests Migration::getDestinationIds()
*
* @covers ::getDestinationIds
*/
public function testGetDestinationIds() { $migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration(['destinationIds' =>
['foo' => 'bar'
]]);
$destination_ids =
$migration->
getDestinationIds();
$this->
assertNotEmpty($destination_ids, 'Destination ids are not empty'
);
$this->
assertEquals(['foo' => 'bar'
],
$destination_ids, 'Destination ids match the expected values.'
);
} /**
* Tests Migration::getTrackLastImported()
*
* @covers ::getTrackLastImported
* @covers ::isTrackLastImported
*
* @group legacy
*/