protected function AuthcacheEsiTestCase::assertStub in Authenticated User Page Caching (Authcache) 7.2
Test whether the given stub passes the invocation verifier.
3 calls to AuthcacheEsiTestCase::assertStub()
- AuthcacheEsiTestCase::testEsiAssembly in modules/
authcache_esi/ tests/ authcache_esi.test - Cover authcache_esi assembly and partial.
- AuthcacheEsiTestCase::testEsiFragment in modules/
authcache_esi/ tests/ authcache_esi.test - Cover theme_authcache_p13n_fragment__authcache_esi().
- AuthcacheEsiTestCase::testEsiSetting in modules/
authcache_esi/ tests/ authcache_esi.test - Cover theme_authcache_p13n_setting__authcache_esi().
File
- modules/
authcache_esi/ tests/ authcache_esi.test, line 38 - Tests for ESI markup generator
Class
- AuthcacheEsiTestCase
- Test authcache esi
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);
}