public function HttpCacheTest::testPassesOnNonGetHeadRequests in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testPassesOnNonGetHeadRequests()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 50
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testPassesOnNonGetHeadRequests() {
$this
->setNextResponse(200);
$this
->request('POST', '/');
$this
->assertHttpKernelIsCalled();
$this
->assertResponseOk();
$this
->assertTraceContains('pass');
$this
->assertFalse($this->response->headers
->has('Age'));
}