function hook_simpletest_alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/simpletest.api.php \hook_simpletest_alter()
Alter the list of tests.
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.
Related topics
1 invocation of hook_simpletest_alter()
- TestDiscovery::getTestClasses in core/
modules/ simpletest/ src/ TestDiscovery.php - Discovers all available tests in all extensions.
File
- core/
modules/ simpletest/ simpletest.api.php, line 21 - 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']);
}