5 * Hooks provided by the SimpleTest module.
14 * Alter the list of tests.
16 * This hook will not be invoked by the phpunit tool.
19 * A two dimensional array, the first key is the test group, the second is the
20 * name of the test class, and the value is in associative array containing
21 * 'name', 'description', 'group', and 'requires' keys.
23 * @deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. Convert
24 * your test to a PHPUnit-based one and implement test listeners.
26 * @see https://www.drupal.org/node/2939892
28 function hook_simpletest_alter(&$groups) {
29 // An alternative session handler module would not want to run the original
30 // Session HTTPS handling test because it checks the sessions table in the
32 unset($groups['Session']['testHttpsSession']);
36 * A test group has started.
38 * This hook is called just once at the beginning of a test group.
40 function hook_test_group_started() {
44 * A test group has finished.
46 * This hook is called just once at the end of a test group.
48 function hook_test_group_finished() {
52 * An individual test has finished.
54 * This hook is called when an individual test has finished.
57 * $results The results of the test as gathered by
58 * \Drupal\simpletest\WebTestBase.
60 * @see \Drupal\simpletest\WebTestBase::results()
62 function hook_test_finished($results) {
66 * @} End of "addtogroup hooks".