function TestMigration::__construct

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::__construct()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::__construct()
  3. 11.x core/modules/migrate/tests/src/Unit/MigrationTest.php \Drupal\Tests\migrate\Unit\TestMigration::__construct()

Constructs an instance of TestMigration object.

Overrides Migration::__construct

File

core/modules/migrate/tests/src/Unit/MigrationTest.php, line 293

Class

TestMigration
Defines the TestMigration class.

Namespace

Drupal\Tests\migrate\Unit

Code

public function __construct() {
    $this->migration_dependencies = ($this->migration_dependencies ?: []) + [
        'required' => [],
        'optional' => [],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.