public function HttpCacheTest::testCachesResponsesWithAnETagValidatorButNoFreshnessInformation

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php, line 493

Class

HttpCacheTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testCachesResponsesWithAnETagValidatorButNoFreshnessInformation() {
  $this
    ->setNextResponse(200, array(
    'Cache-Control' => 'public',
    'ETag' => '"123456"',
  ));
  $this
    ->request('GET', '/');
  $this
    ->assertEquals(200, $this->response
    ->getStatusCode());
  $this
    ->assertEquals('Hello World', $this->response
    ->getContent());
  $this
    ->assertTraceContains('miss');
  $this
    ->assertTraceContains('store');
}