function TestMigration::__construct
Constructs an instance of TestMigration object.
Parameters
string[]|null $initial_dependency: An associative array of required and optional migrations IDs, keyed by 'required' and 'optional'.
Overrides Migration::__construct
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrationTest.php, line 455
Class
- TestMigration
- Defines the TestMigration class.
Namespace
Drupal\Tests\migrate\UnitCode
public function __construct(?array $initial_dependency = NULL) {
$this->migration_dependencies = ($this->migration_dependencies ?: []) + [
'required' => [],
'optional' => [],
];
if ($initial_dependency) {
$this->migration_dependencies = $initial_dependency;
}
$this->requirements = [
'require1',
'require2',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.