function hook_simpletest_alter in Drupal 8
Same name and namespace in other branches
- 7 modules/simpletest/simpletest.api.php \hook_simpletest_alter()
Alter the list of tests.
This hook will not be invoked by the phpunit tool.
Parameters
$groups: A two dimensional array, the first key is the test group, the second is the name of the test class, and the value is in associative array containing 'name', 'description', 'group', and 'requires' keys.
Deprecated
in drupal:8.6.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
See also
https://www.drupal.org/node/2939892
Related topics
1 function implements hook_simpletest_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- simpletest_deprecation_test_simpletest_alter in core/
modules/ simpletest/ tests/ modules/ simpletest_deprecation_test/ simpletest_deprecation_test.module - Implements hook_simpletest_alter().
File
- core/
modules/ simpletest/ simpletest.api.php, line 28 - Hooks provided by the SimpleTest module.
Code
function hook_simpletest_alter(&$groups) {
// An alternative session handler module would not want to run the original
// Session HTTPS handling test because it checks the sessions table in the
// database.
unset($groups['Session']['testHttpsSession']);
}