function PerformanceTestTrait::doInstallModulesFromClassProperty
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/PerformanceTestTrait.php \Drupal\Tests\PerformanceTestTrait::doInstallModulesFromClassProperty()
- 10 core/tests/Drupal/Tests/PerformanceTestTrait.php \Drupal\Tests\PerformanceTestTrait::doInstallModulesFromClassProperty()
Helper for ::installModulesFromClassProperty().
To use this, override BrowserTestBase::installModulesFromClassProperty() and call this helper.
Deprecated
in drupal:12.0.0 and is removed from drupal:13.0.0. Use ::doGetModulesFromClassProperty() instead.
See also
\Drupal\Tests\BrowserTestBase::installModulesFromClassProperty()
https://www.drupal.org/node/3616201
File
-
core/
tests/ Drupal/ Tests/ PerformanceTestTrait.php, line 55
Class
- PerformanceTestTrait
- Provides various methods to aid in collecting performance data during tests.
Namespace
Drupal\TestsCode
private function doInstallModulesFromClassProperty(ContainerInterface $container) : void {
// Bypass everything that WebDriverTestBase does here to get closer to
// a production configuration.
BrowserTestBase::installModulesFromClassProperty($container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.