public function HttpCacheTest::testDoesCacheWithAuthorizationRequestHeaderAndPublicResponse 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::testDoesCacheWithAuthorizationRequestHeaderAndPublicResponse()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 87
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testDoesCacheWithAuthorizationRequestHeaderAndPublicResponse() {
$this
->setNextResponse(200, array(
'Cache-Control' => 'public',
'ETag' => '"Foo"',
));
$this
->request('GET', '/', array(
'HTTP_AUTHORIZATION' => 'basic foobarbaz',
));
$this
->assertHttpKernelIsCalled();
$this
->assertResponseOk();
$this
->assertTraceContains('miss');
$this
->assertTraceContains('store');
$this
->assertTrue($this->response->headers
->has('Age'));
$this
->assertEquals('public', $this->response->headers
->get('Cache-Control'));
}