public function testMigrationDependenciesInConstructor(array
$dependencies) { $configuration =
['migration_dependencies' =>
$dependencies];
$plugin_id = 'test_migration';
$migration_plugin_manager =
$this->
createMock('\Drupal\migrate\Plugin\MigrationPluginManagerInterface'
);
$source_plugin_manager =
$this->
createMock('\Drupal\migrate\Plugin\MigratePluginManagerInterface'
);
$process_plugin_manager =
$this->
createMock('\Drupal\migrate\Plugin\MigratePluginManagerInterface'
);
$destination_plugin_manager =
$this->
createMock('\Drupal\migrate\Plugin\MigrateDestinationPluginManager'
);
$id_map_plugin_manager =
$this->
createMock('\Drupal\migrate\Plugin\MigratePluginManagerInterface'
);
$this->
expectDeprecation("Invalid migration dependencies for {
$plugin_id} is deprecated in drupal:10.1.0 and will cause an error in drupal:11.0.0. See https://www.drupal.org/node/3266691"
);
new Migration($configuration,
$plugin_id,
[],
$migration_plugin_manager,
$source_plugin_manager,
$process_plugin_manager,
$destination_plugin_manager,
$id_map_plugin_manager);
} /**
* Tests checking requirements for source plugins.
*
* @covers ::checkRequirements
*/
public function testRequirementsForSourcePlugin() { $migration =
new TestMigration();
$source_plugin =
$this->
createMock('Drupal\Tests\migrate\Unit\RequirementsAwareSourceInterface'
);