You are here

public function TestSqlIdMap::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/TestSqlIdMap.php \Drupal\Tests\migrate\Unit\TestSqlIdMap::__construct()

Constructs a TestSqlIdMap object.

Parameters

\Drupal\Core\Database\Connection $database: The database.

array $configuration: The configuration.

string $plugin_id: The plugin ID for the migration process to do.

mixed $plugin_definition: The configuration for the plugin.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration to do.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

Overrides Sql::__construct

File

core/modules/migrate/tests/src/Unit/TestSqlIdMap.php, line 32

Class

TestSqlIdMap
Defines a SQL ID map for use in tests.

Namespace

Drupal\Tests\migrate\Unit

Code

public function __construct(Connection $database, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EventDispatcherInterface $event_dispatcher) {
  $this->database = $database;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $event_dispatcher);
}