function MigrationTest::getInvalidMigrationDependenciesProvider
Same name in other branches
- 11.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\MigrationTest::getInvalidMigrationDependenciesProvider()
Provides invalid migration dependencies.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrationTest.php, line 243
Class
- MigrationTest
- @coversDefaultClass \Drupal\migrate\Plugin\Migration
Namespace
Drupal\Tests\migrate\UnitCode
public static function getInvalidMigrationDependenciesProvider() {
return [
'invalid key' => [
'dependencies' => [
'bogus' => [],
],
],
'required not array' => [
'dependencies' => [
'required' => 17,
'optional' => [],
],
],
'optional not array' => [
'dependencies' => [
'required' => [],
'optional' => 17,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.