You are here

public function HttpCacheTest::testPassesOnNonGetHeadRequests in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testPassesOnNonGetHeadRequests() {
  $this
    ->setNextResponse(200);
  $this
    ->request('POST', '/');
  $this
    ->assertHttpKernelIsCalled();
  $this
    ->assertResponseOk();
  $this
    ->assertTraceContains('pass');
  $this
    ->assertFalse($this->response->headers
    ->has('Age'));
}