public function AuthcacheP13nTestDefaultRequestRouter::testRebuild in Authenticated User Page Caching (Authcache) 7.2
Cover AuthcacheP13nDefaultRequestRouter::rebuild().
File
- modules/
authcache_p13n/ tests/ authcache_p13n.frontcontroller.test, line 248 - Defines tests for authcache frontcontroller for personalized requests.
Class
- AuthcacheP13nTestDefaultRequestRouter
- Tests for default router.
Code
public function testRebuild() {
// Ensure that route is not present when stub module is not enabled.
$this
->assertFalse(authcache_p13n_request_exists('test/stub'));
// Enable stub module.
module_enable(array(
'authcache_p13n_test',
));
$this
->resetAll();
// Ensure that route is present when stub module is enabled.
authcache_p13n_request_router_rebuild();
$this
->assertTrue(authcache_p13n_request_exists('test/stub'));
}