public function HttpCacheTest::testDoesNotCacheRequestsWithACookieHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testDoesNotCacheRequestsWithACookieHeader()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 113
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
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'));
}