TestMigrateExecutable.php

Namespace

Drupal\Tests\migrate\Kernel

File

core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php

View source
<?php

namespace Drupal\Tests\migrate\Kernel;

use Drupal\migrate\MigrateExecutable;

/**
 * Tests MigrateExecutable.
 */
class TestMigrateExecutable extends MigrateExecutable {
  
  /**
   * {@inheritdoc}
   */
  protected function getIdMap() {
    // This adds test coverage that this works.
    return new TestFilterIterator(parent::getIdMap());
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getSource() {
    // This adds test coverage that this works.
    return new TestFilterIterator(parent::getSource());
  }

}

Classes

Title Deprecated Summary
TestMigrateExecutable Tests MigrateExecutable.

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