function DrupalTestCaseTrait::checkLegacySymfonyDeprecationHelperEnvVariable
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/DrupalTestCaseTrait.php \Drupal\Tests\DrupalTestCaseTrait::checkLegacySymfonyDeprecationHelperEnvVariable()
Checks legacy SYMFONY_DEPRECATIONS_HELPER env variable is not used.
Attributes
#[Before]
File
-
core/
tests/ Drupal/ Tests/ DrupalTestCaseTrait.php, line 72
Class
- DrupalTestCaseTrait
- Provides methods common across all Drupal abstract base test classes.
Namespace
Drupal\TestsCode
public function checkLegacySymfonyDeprecationHelperEnvVariable() : void {
if (getenv('SYMFONY_DEPRECATIONS_HELPER') !== FALSE) {
@trigger_error("Using the SYMFONY_DEPRECATIONS_HELPER environment variable to configure test runs is deprecated in drupal:11.5.0 and is removed from drupal:12.0.0. See https://www.drupal.org/node/3594014", E_USER_DEPRECATED);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.