hook_simpletest_alter

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_simpletest_alter(&$groups)

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

Code

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

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