protected function AuthcacheAjaxTestCase::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
3 calls to AuthcacheAjaxTestCase::assertStub()
- AuthcacheAjaxTestCase::testAjaxAssembly in modules/
authcache_ajax/ tests/ authcache_ajax.test - Cover authcache_ajax assembly and partial.
- AuthcacheAjaxTestCase::testAjaxFragment in modules/
authcache_ajax/ tests/ authcache_ajax.test - Cover theme_authcache_p13n_fragment__authcache_ajax().
- AuthcacheAjaxTestCase::testAjaxSetting in modules/
authcache_ajax/ tests/ authcache_ajax.test - Cover theme_authcache_p13n_setting__authcache_ajax().
File
- modules/
authcache_ajax/ tests/ authcache_ajax.test, line 38 - Tests for Ajax markup generator
Class
- AuthcacheAjaxTestCase
- Test authcache ajax
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);
}