function simpletest_last_test_get
Same name in other branches
- 7.x modules/simpletest/simpletest.module \simpletest_last_test_get()
Get information about the last test that ran given a test ID.
Parameters
$test_id: The test ID to get the last test from.
Return value
array Array containing the last database prefix used and the last test class that ran.
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::lastTestGet() instead.
See also
https://www.drupal.org/node/3075252
File
-
core/
modules/ simpletest/ simpletest.module, line 435
Code
function simpletest_last_test_get($test_id) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \\Drupal\\Core\\Test\\TestDatabase::lastTestGet() instead. See https://www.drupal.org/node/3075252', E_USER_DEPRECATED);
return array_values(TestDatabase::lastTestGet($test_id));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.