You are here

protected function DrupalWebTestCase::drupalGetToken in SimpleTest 7

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalWebTestCase::drupalGetToken()
  2. 7.2 drupal_web_test_case.php \DrupalWebTestCase::drupalGetToken()

Generate a token for the currently logged in user.

File

./drupal_web_test_case.php, line 996

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function drupalGetToken($value = '') {
  $private_key = drupal_get_private_key();
  return md5($this->session_id . $value . $private_key);
}