You are here

protected function AuthcacheCommerceTest::drupalGetToken in Authenticated User Page Caching (Authcache) 7.2

Overrides the defective method in the parent class.

Overrides DrupalWebTestCase::drupalGetToken

1 call to AuthcacheCommerceTest::drupalGetToken()
AuthcacheCommerceTest::testCommerceAddToCartWithFormCache in modules/authcache_commerce/authcache_commerce.test
Test that products are added to the proper cart.

File

modules/authcache_commerce/authcache_commerce.test, line 199
Test cases for the Authcache Commerce module.

Class

AuthcacheCommerceTest
Tests for markup substitution.

Code

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