You are here

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

Test whether the given stub passes the invocation verifier.

1 call to AuthcacheMenuTestLocalTasks::assertStub()
AuthcacheMenuTestLocalTasks::testNodeViewLocalTask in modules/authcache_menu/tests/authcache_menu.test
Test local tasts on node-view.

File

modules/authcache_menu/tests/authcache_menu.test, line 38
Test classes for Authcache Menu module.

Class

AuthcacheMenuTestLocalTasks
Test personalization of local tasks and action links.

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