This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/core/modules/simpletest/simpletest.api.php
2018-11-23 12:29:20 +00:00

68 lines
1.5 KiB
PHP

<?php
/**
* @file
* Hooks provided by the SimpleTest module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Alter the list of tests.
*
* This hook will not be invoked by the phpunit tool.
*
* @param $groups
* 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.
*
* @deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. Convert
* your test to a PHPUnit-based one and implement test listeners.
*
* @see https://www.drupal.org/node/2939892
*/
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.
*
* 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.
*
* This hook is called when an individual test has finished.
*
* @param
* $results The results of the test as gathered by
* \Drupal\simpletest\WebTestBase.
*
* @see \Drupal\simpletest\WebTestBase::results()
*/
function hook_test_finished($results) {
}
/**
* @} End of "addtogroup hooks".
*/