You are here

protected function FileEntityTestHelper::drupalGetToken in File Entity (fieldable files) 7.2

Same name and namespace in other branches
  1. 7.3 file_entity.test \FileEntityTestHelper::drupalGetToken()

Overrides DrupalWebTestCase::drupalGetToken() to support the hash salt.

@todo Remove when http://drupal.org/node/1555862 is fixed in core.

Overrides DrupalWebTestCase::drupalGetToken

File

./file_entity.test, line 125
Test integration for the file_entity module.

Class

FileEntityTestHelper
@file Test integration for the file_entity module.

Code

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