class AuthcacheP13nTestRequestUrlGeneratorStub in Authenticated User Page Caching (Authcache) 7.2
Stub URL generator.
Hierarchy
Expanded class hierarchy of AuthcacheP13nTestRequestUrlGeneratorStub
2 string references to 'AuthcacheP13nTestRequestUrlGeneratorStub'
- AuthcacheP13nTestDefaultRequestRouter::setUp in modules/
authcache_p13n/ tests/ authcache_p13n.frontcontroller.test - Sets up a Drupal site for running functional and integration tests.
- AuthcacheP13nTestMarkup::createRequestHandlers in modules/
authcache_p13n/ tests/ authcache_p13n.markup.test - Utility function: construct request handlers.
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 634 - Stub classes for testing.
View source
class AuthcacheP13nTestRequestUrlGeneratorStub implements AuthcacheP13nRequestUrlGeneratorInterface {
/**
* {@inheritdoc}
*/
public function url($route_id, $arg = NULL) {
if ($route_id === 'test/bad') {
return FALSE;
}
else {
return array(
'path' => 'http://example.com/authcache.php',
'options' => array(
'query' => array(
'r' => $route_id,
'a' => $arg ?: '',
),
),
);
}
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestRequestUrlGeneratorStub:: |
public | function |
Generate an url for the given request and parameter. Overrides AuthcacheP13nRequestUrlGeneratorInterface:: |