'migration' => 'm5',
],
],
],
'f7' =>
[ 'plugin' => 'migration_lookup',
'migration' => 'foo',
],
],
];
$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'
);