public function StoreTest::testRestoresResponseHeadersProperlyWithLookup

File

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

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testRestoresResponseHeadersProperlyWithLookup() {
  $this
    ->storeSimpleEntry();
  $response = $this->store
    ->lookup($this->request);
  $this
    ->assertEquals($response->headers
    ->all(), array_merge(array(
    'content-length' => 4,
    'x-body-file' => array(
      $this
        ->getStorePath($response->headers
        ->get('X-Content-Digest')),
    ),
  ), $this->response->headers
    ->all()));
}