public function testMigrationDependenciesWithInvalidConfig(array
$dependencies) { $migration =
new TestMigration();
// Set the plugin ID to test the returned message.
$plugin_id = 'test_migration';
$migration->
setPluginId($plugin_id);
// Migration dependencies expects ['optional' => []] or ['required' => []]].
$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"
);
$migration->
set('migration_dependencies',
$dependencies);
$this->
expectException(InvalidPluginDefinitionException::
class);
$this->
expectExceptionMessage("Invalid migration dependencies configuration for migration {
$plugin_id}"
);
$migration->
getMigrationDependencies(TRUE
);
} /**
* Provides data for valid migration configuration test.
*/