protected function AuthcacheBuiltinTestCacheBackend::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
1 call to AuthcacheBuiltinTestCacheBackend::assertStub()
- AuthcacheBuiltinTestCacheBackend::testCachePreclusion in modules/
authcache_builtin/ tests/ authcache_builtin.cache-backend.test - Preclusion: Suppress subsequent page request being delivered from cache.
File
- modules/
authcache_builtin/ tests/ authcache_builtin.cache-backend.test, line 57 - Test cases for the Authcache Bultin Cache Backend module.
Class
- AuthcacheBuiltinTestCacheBackend
- Tests update functionality unrelated to the database.
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);
}