class MigrateFieldPluginManagerTestClass in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass
- 9 core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass
Class to test MigrateFieldPluginManager.
Overrides the constructor to inject a mock discovery class to provide a test list of plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTrait
- class \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTrait
- class \Drupal\migrate\Plugin\MigratePluginManager implements MigratePluginManagerInterface
- class \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager implements MigrateFieldPluginManagerInterface
- class \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass
- class \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager implements MigrateFieldPluginManagerInterface
- class \Drupal\migrate\Plugin\MigratePluginManager implements MigratePluginManagerInterface
- class \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTrait
Expanded class hierarchy of MigrateFieldPluginManagerTestClass
File
- core/
modules/ migrate_drupal/ tests/ src/ Unit/ MigrateFieldPluginManagerTest.php, line 199
Namespace
Drupal\Tests\migrate_drupal\UnitView source
class MigrateFieldPluginManagerTestClass extends MigrateFieldPluginManager {
/**
* Constructs a MigratePluginManagerTestClass object.
*
* @param string $type
* The type of the plugin: row, source, process, destination, entity_field,
* id_map.
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache backend instance to use.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler to invoke the alter hook with.
* @param string $annotation
* The annotation class name.
* @param \Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery $discovery
* A mock plugin discovery object for the test class to use.
*/
public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, $annotation, AnnotatedClassDiscovery $discovery) {
parent::__construct($type, $namespaces, $cache_backend, $module_handler, $annotation);
$this->discovery = $discovery;
}
}