public function HttpCacheTest::testDoesNotCacheResponsesWithExplicitNoStoreDirective 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::testDoesNotCacheResponsesWithExplicitNoStoreDirective()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 390
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testDoesNotCacheResponsesWithExplicitNoStoreDirective() {
$time = \DateTime::createFromFormat('U', time() + 5);
$this
->setNextResponse(200, array(
'Expires' => $time
->format(DATE_RFC2822),
'Cache-Control' => 'no-store',
));
$this
->request('GET', '/');
$this
->assertTraceNotContains('store');
$this
->assertFalse($this->response->headers
->has('Age'));
}