You are here

public function AuthcacheP13nTestFrontcontroller::testMissingRequestPath in Authenticated User Page Caching (Authcache) 7.2

Fc should respond with 400 Bad Request if r-parameter is missing.

File

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

Class

AuthcacheP13nTestFrontcontroller
Tests for authcache frontcontroller for personalized requests.

Code

public function testMissingRequestPath() {
  $headers = array(
    'X-Authcache: 1',
  );
  $params = array(
    'q' => 'node',
  );
  $result = $this
    ->drupalGet($this->fcURL, array(
    'query' => $params,
  ), $headers);
  $this
    ->assertResponse(400);
  $this
    ->assertEqual('', $result);
}