You are here

function hook_test_finished in Drupal 8

Same name and namespace in other branches
  1. 7 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

_simpletest_batch_operation()

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
Hooks provided by the SimpleTest module.

Code

function hook_test_finished($results) {
}