You are here

protected function AuthcacheP13nTestMarkup::createRequestHandlers in Authenticated User Page Caching (Authcache) 7.2

Utility function: construct request handlers.

4 calls to AuthcacheP13nTestMarkup::createRequestHandlers()
AuthcacheP13nTestMarkup::testCustomClientMarkup in modules/authcache_p13n/tests/authcache_p13n.markup.test
Cover theme_authcache_p13n_X().
AuthcacheP13nTestMarkup::testDefaultFallbackMarkup in modules/authcache_p13n/tests/authcache_p13n.markup.test
Cover theme_authcache_p13n_X default fallback markup.
AuthcacheP13nTestMarkup::testFallbackCancel in modules/authcache_p13n/tests/authcache_p13n.markup.test
Cover authcache_p13n_authcache_p13n_client_fallback_alter().
AuthcacheP13nTestMarkup::testRenderElement in modules/authcache_p13n/tests/authcache_p13n.markup.test
Cover authcache_p13n_attach().

File

modules/authcache_p13n/tests/authcache_p13n.markup.test, line 54
Define tests for markup substitution.

Class

AuthcacheP13nTestMarkup
Tests for markup substitution.

Code

protected function createRequestHandlers() {
  $this->stubmod
    ->hook('authcache_p13n_request', array(
    'frag/a-frag' => array(
      'handler' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestHandlerStub',
      ),
      'url generator' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestUrlGeneratorStub',
      ),
    ),
    'setting/a-setting' => array(
      'handler' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestHandlerStub',
      ),
      'url generator' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestUrlGeneratorStub',
      ),
    ),
    'asm/an-assembly' => array(
      'handler' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestHandlerStub',
      ),
      'url generator' => array(
        '#type' => 'class',
        '#class' => 'AuthcacheP13nTestRequestUrlGeneratorStub',
      ),
    ),
  ));
  authcache_p13n_request_router_rebuild();
}