You are here

public function FieldDiscoveryTestClass::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::__construct()
  2. 10 core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php \Drupal\field_discovery_test\FieldDiscoveryTestClass::__construct()

Constructs a FieldDiscoveryTestClass object.

Parameters

\Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface $field_plugin_manager: The field plugin manager.

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

\Psr\Log\LoggerInterface $logger: The logger.

array $test_data: An array of test data, keyed by method name, for overridden methods to return for the purposes of testing other methods.

Overrides FieldDiscovery::__construct

File

core/modules/migrate_drupal/tests/modules/field_discovery_test/src/FieldDiscoveryTestClass.php, line 36

Class

FieldDiscoveryTestClass
A test class to expose protected methods.

Namespace

Drupal\field_discovery_test

Code

public function __construct(MigrateFieldPluginManagerInterface $field_plugin_manager, MigrationPluginManagerInterface $migration_plugin_manager, LoggerInterface $logger, array $test_data = []) {
  parent::__construct($field_plugin_manager, $migration_plugin_manager, $logger);
  $this->testData = $test_data;
}