protected function AuthcacheWebTestCase::authcacheGet in Authenticated User Page Caching (Authcache) 7.2
Utility method, login with specified account, send get-request, logout.
7 calls to AuthcacheWebTestCase::authcacheGet()
- AuthcacheCookiesTestCase::testCookieHooks in ./
authcache.test - Verify that hook_authcache_cookie is called on every request.
- AuthcachePolicyTestCase::testCustomPagecaching in ./
authcache.test - Test custom page caching rules (variable: authcache_pagecaching).
- AuthcachePolicyTestCase::testDefaultCancelationRules in ./
authcache.test - Test builtin standard cache cancelation rules.
- AuthcachePolicyTestCase::testDefaultExclusionRules in ./
authcache.test - Test builtin standard cache exclusion rules.
- AuthcachePolicyTestCase::testExcludeCancelHooks in ./
authcache.test - Test API for exclusion and cancelation.
File
- ./
authcache.test, line 143 - Tests for system.module.
Class
- AuthcacheWebTestCase
- Helper class for module test cases.
Code
protected function authcacheGet($path, $account = NULL, $options = array(), $headers = array()) {
if ($account) {
$this
->authcacheSetUser($account);
}
variable_set('authcache_test_record', TRUE);
$result = $this
->drupalGet($path, $options, $headers);
variable_set('authcache_test_record', FALSE);
return $result;
}