function hook_simpletest_alter

Same name in other branches
  1. 8.9.x core/modules/simpletest/simpletest.api.php \hook_simpletest_alter()

Alter the list of tests.

Parameters

$groups: A two dimension array, the first key is the test group (as defined in getInfo) the second is the name of the class and the value is the return value of the getInfo method.

Related topics

1 invocation of hook_simpletest_alter()
simpletest_test_get_all in modules/simpletest/simpletest.module
Get a list of all of the tests provided by the system.

File

modules/simpletest/simpletest.api.php, line 21

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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.