You are here

public function StoreTest::testSetsTheXContentDigestResponseHeaderBeforeStoring in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\StoreTest::testSetsTheXContentDigestResponseHeaderBeforeStoring()

File

vendor/symfony/http-kernel/Tests/HttpCache/StoreTest.php, line 86

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testSetsTheXContentDigestResponseHeaderBeforeStoring() {
  $cacheKey = $this
    ->storeSimpleEntry();
  $entries = $this
    ->getStoreMetadata($cacheKey);
  list($req, $res) = $entries[0];
  $this
    ->assertEquals('en9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', $res['x-content-digest'][0]);
}