protected function AuthcacheNodeHistoryTest::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
2 calls to AuthcacheNodeHistoryTest::assertStub()
- AuthcacheNodeHistoryTest::testNodeHistoryNoTagNewOnFront in modules/
authcache_node_history/ authcache_node_history.test - Ensure that node history setting is not embedded when not on a node-page.
- AuthcacheNodeHistoryTest::testNodeHistoryTagNewSetting in modules/
authcache_node_history/ authcache_node_history.test - Ensure that node history setting is embedded for authenticated users.
File
- modules/
authcache_node_history/ authcache_node_history.test, line 61 - Test cases for the Authcache Node History module.
Class
- AuthcacheNodeHistoryTest
- 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);
}