Commit 2def99b2 authored by Dries's avatar Dries
Browse files

- Patch #663828 by chx: allow core tests to be programmatically disabled.

parent e9f18147
......@@ -11,6 +11,21 @@
* @{
*/
/**
* Alter the list of tests.
*
* @param $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.
*/
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']);
}
/**
* A test group has started.
*
......
......@@ -368,6 +368,8 @@ function simpletest_test_get_all() {
uksort($tests, 'strnatcasecmp');
}
// Allow modules extending core tests to disable originals.
drupal_alter('simpletest', $groups);
cache_set('simpletest', $groups);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment