protected function AuthcacheWebTestCase::assertAuthcacheCanceled in Authenticated User Page Caching (Authcache) 7.2
Test whether the preceeding request did hit an cancelation rule.
4 calls to AuthcacheWebTestCase::assertAuthcacheCanceled()
- AuthcacheElementCacheabilityAPITestCase::testElementCacheabilityAPI in ./
authcache.test - Test cacheability API for render elements.
- AuthcachePolicyTestCase::testDefaultCancelationRules in ./
authcache.test - Test builtin standard cache cancelation rules.
- AuthcachePolicyTestCase::testExcludeCancelHooks in ./
authcache.test - Test API for exclusion and cancelation.
- AuthcachePolicyTestCase::testOtherOptions in ./
authcache.test - Test rest of custom options (authcache_http200, authcache_noajax).
File
- ./
authcache.test, line 194 - Tests for system.module.
Class
- AuthcacheWebTestCase
- Helper class for module test cases.
Code
protected function assertAuthcacheCanceled($with_message = NULL) {
if ($with_message) {
$this
->assertEqual($with_message, variable_get('authcache_test_authcache_canceled'));
}
else {
$this
->assertNotEqual(NULL, variable_get('authcache_test_authcache_canceled'));
}
}