You are here

protected function AuthcacheUserTest::assertStub in Authenticated User Page Caching (Authcache) 7.2

Test whether the given stub passes the invocation verifier.

2 calls to AuthcacheUserTest::assertStub()
AuthcacheUserTest::testSiteContactForm in modules/authcache_user/authcache_user.test
Ensure that user setting is embedded for authenticated users.
AuthcacheUserTest::testUserContactForm in modules/authcache_user/authcache_user.test
Ensure that user setting is embedded for authenticated users.

File

modules/authcache_user/authcache_user.test, line 69
Test cases for the Authcache User module.

Class

AuthcacheUserTest
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);
}