You are here

public function AuthcacheP13nTestDefaultRequestRouter::testRequestNotFound in Authenticated User Page Caching (Authcache) 7.2

Should throw AuthcacheP13nRequestNotFound when route does not exist.

File

modules/authcache_p13n/tests/authcache_p13n.frontcontroller.test, line 286
Defines tests for authcache frontcontroller for personalized requests.

Class

AuthcacheP13nTestDefaultRequestRouter
Tests for default router.

Code

public function testRequestNotFound() {
  $this
    ->assertFalse(authcache_p13n_request_exists('test/route-does-not-exist'));
  $handler = $this->router
    ->getHandler('test/request-does-not-exist');
  $this
    ->assertFalse($handler, 'Should return FALSE if request does not exist in router');
}