1 file.test | protected FileTestHelper::backdropGetToken($value = '') |
Overrides BackdropWebTestCase::backdropGetToken() to support the hash salt.
@todo Remove when http://backdrop.org/node/1555862 is fixed in core.
Overrides BackdropWebTestCase::backdropGetToken
File
- core/
modules/ file/ tests/ file.test, line 142 - Tests for file.module.
Class
- FileTestHelper
- Provides methods specifically for testing File module's field handling.
Code
protected function backdropGetToken($value = '') {
$private_key = backdrop_get_private_key();
return backdrop_hmac_base64($value, $this->session_id . $private_key . backdrop_get_hash_salt());
}