function TestDiscovery::__construct
Same name in this branch
- 8.9.x core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()
- 10 core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()
- 11.x core/lib/Drupal/Core/Test/TestDiscovery.php \Drupal\Core\Test\TestDiscovery::__construct()
Constructs a new test discovery.
Parameters
string $root: The app root.
$class_loader: The class loader. Normally Composer's ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides TestDiscovery::__construct
File
-
core/
modules/ simpletest/ src/ TestDiscovery.php, line 46
Class
- TestDiscovery
- Discovers available tests.
Namespace
Drupal\simpletestCode
public function __construct($root, $class_loader, ModuleHandlerInterface $module_handler) {
parent::__construct($root, $class_loader);
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.