protected function AuthcacheForumTest::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
2 calls to AuthcacheForumTest::assertStub()
- AuthcacheForumTest::testForumList in modules/
authcache_forum/ authcache_forum.test - Markup substitution forum overview page.
- AuthcacheForumTest::testForumTopicList in modules/
authcache_forum/ authcache_forum.test - Markup substitution on forum topic list.
File
- modules/
authcache_forum/ authcache_forum.test, line 85 - Test cases for the Authcache Forum module.
Class
- AuthcacheForumTest
- Tests for markup substitution.
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);
}