You are here

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

Test whether the given stub passes the invocation verifier.

3 calls to AuthcachePanelsPageManagerTest::assertStub()
AuthcachePanelsPageManagerTest::testCustomPageManagerPageDefinedInCode in modules/authcache_panels_page_manager/authcache_panels_page_manager.test
Test custom page manager page defined in code.
AuthcachePanelsPageManagerTest::testCustomPageManagerPageDefinedInDatabase in modules/authcache_panels_page_manager/authcache_panels_page_manager.test
Test custom page manager page defined in database.
AuthcachePanelsPageManagerTest::testEmptyContentPane in modules/authcache_panels_page_manager/authcache_panels_page_manager.test
Test the behavior on empty content panes.

File

modules/authcache_panels_page_manager/authcache_panels_page_manager.test, line 67
Test cases for the Authcache PanelsPageManager module.

Class

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