You are here

function simpletest_last_test_get in SimpleTest 8.3

Same name and namespace in other branches
  1. 6.2 simpletest.module \simpletest_last_test_get()
  2. 7.2 simpletest.module \simpletest_last_test_get()
  3. 7 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

./simpletest.module, line 434
Provides testing functionality.

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));
}