function MigrationTest::getInvalidMigrationDependenciesProvider
Same name in other branches
- 10 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 238
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.