You are here

function simpletest_last_test_get in Drupal 8

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