You are here

protected function ViewsDataExportAccessTest::drupalGetToken in Views data export 7.3

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

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

Overrides DrupalWebTestCase::drupalGetToken

1 call to ViewsDataExportAccessTest::drupalGetToken()
ViewsDataExportAccessTest::testExportedTempFileAccess in tests/access.test
Test that VDE export can only be downloaded by the user that created them.

File

tests/access.test, line 77

Class

ViewsDataExportAccessTest
Test class for access checks for VDE downloads.

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