TestMigrationMock example

$this->pluginManager = new MigrationPluginManager($module_handler$cache_backend$language_manager);
  }

  /** * Tests building dependencies for multiple migrations. * * @dataProvider dependencyProvider */
  public function testDependencyBuilding($migrations_data$result_ids) {
    $migrations = [];
    foreach ($migrations_data as $migration_id => $migration_data) {
      $migrations[$migration_id] = new TestMigrationMock($migration_id$migration_data['migration_dependencies']);
    }

    $ordered_migrations = $this->pluginManager->buildDependencyMigration($migrations[]);

    // Verify results.     $this->assertEquals($result_idsarray_keys($ordered_migrations));
    foreach ($migrations_data as $migration_id => $migration_data) {
      $migration = $migrations[$migration_id];

      $requirements = $migration_data['result_requirements'];
      if (empty($requirements)) {
        
Home | Imprint | This part of the site doesn't use cookies.