function hook_test_finished
Same name in other branches
- 7.x modules/simpletest/simpletest.api.php \hook_test_finished()
An individual test has finished.
This hook is called when an individual test has finished.
This hook is only invoked by the Simpletest UI form runner. It will not be invoked by run-tests.sh or the phpunit tool.
Parameters
$results The results of the test as gathered by: \Drupal\simpletest\WebTestBase.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
See also
https://www.drupal.org/node/2934242
Related topics
1 function implements hook_test_finished()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- simpletest_deprecation_test_test_finished in core/
modules/ simpletest/ tests/ modules/ simpletest_deprecation_test/ simpletest_deprecation_test.module - Implements hook_test_finished().
File
-
core/
modules/ simpletest/ simpletest.api.php, line 85
Code
function hook_test_finished($results) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.