You are here

public function TestSmartSqlIdMap::__construct in Smart SQL ID Map 1.1.x

Same name and namespace in other branches
  1. 1.0.x tests/src/Unit/TestSmartSqlIdMap.php \Drupal\Tests\smart_sql_idmap\Unit\TestSmartSqlIdMap::__construct()

Constructs a TestSqlIdMap object.

Parameters

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

\Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager: The migration plugin manager.

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 SmartSql::__construct

File

tests/src/Unit/TestSmartSqlIdMap.php, line 42

Class

TestSmartSqlIdMap
A Smart SQL ID map-based plugin that can be used for testing SmartSql.

Namespace

Drupal\Tests\smart_sql_idmap\Unit

Code

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