protected function AuthcacheWebTestCase::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
4 calls to AuthcacheWebTestCase::assertStub()
- 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::testOtherOptions in ./
authcache.test - Test rest of custom options (authcache_http200, authcache_noajax).
File
- ./
authcache.test, line 232 - Tests for system.module.
Class
- AuthcacheWebTestCase
- Helper class for module test cases.
Code
protected function assertStub(HookStubProxy $stub, $verifier, $message = NULL) {
$result = $stub
->verify($verifier, $error);
if (!$message) {
$message = t('Verify invocation of hook @hook.', array(
'@hook' => $stub
->hookname(),
));
}
if (!$result && is_string($error)) {
$message .= ' ' . $error;
}
$this
->assertTrue($result, $message);
}