public function HttpCacheTest::testDoesNotCacheRequestsWithACookieHeader

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php, line 126

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testDoesNotCacheRequestsWithACookieHeader() {
  $this
    ->setNextResponse(200);
  $this
    ->request('GET', '/', array(), array(
    'foo' => 'bar',
  ));
  $this
    ->assertHttpKernelIsCalled();
  $this
    ->assertResponseOk();
  $this
    ->assertEquals('private', $this->response->headers
    ->get('Cache-Control'));
  $this
    ->assertTraceContains('miss');
  $this
    ->assertTraceNotContains('store');
  $this
    ->assertFalse($this->response->headers
    ->has('Age'));
}