simpletest.api.php 1.25 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
<?php

/**
 * @file
 * Hooks provided by the SimpleTest module.
 */

/**
 * @addtogroup hooks
 * @{
 */

13
14
15
16
/**
 * Alter the list of tests.
 *
 * @param $groups
17
18
19
 *   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.
20
21
22
 */
function hook_simpletest_alter(&$groups) {
  // An alternative session handler module would not want to run the original
23
  // Session HTTPS handling test because it checks the sessions table in the
24
25
26
27
  // database.
  unset($groups['Session']['testHttpsSession']);
}

28
29
/**
 * A test group has started.
30
 *
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 * This hook is called just once at the beginning of a test group.
 */
function hook_test_group_started() {
}

/**
 * A test group has finished.
 *
 * This hook is called just once at the end of a test group.
 */
function hook_test_group_finished() {
}

/**
 * An individual test has finished.
46
 *
47
48
49
 * This hook is called when an individual test has finished.
 *
 * @param
50
51
 *   $results The results of the test as gathered by
 *   \Drupal\simpletest\WebTestBase.
52
 *
53
 * @see \Drupal\simpletest\WebTestBase::results()
54
55
56
57
58
59
60
61
 */
function hook_test_finished($results) {
}


/**
 * @} End of "addtogroup hooks".
 */