protected function StoreTest::storeSimpleEntry

9 calls to StoreTest::storeSimpleEntry()
StoreTest::testCanonizesUrlsForCacheKeys in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testDoesNotFindAnEntryWithLookupWhenTheBodyDoesNotExist in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testFindsAStoredEntryWithLookup in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testInvalidatesMetaAndEntityStoreEntriesWithInvalidate in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
StoreTest::testRestoresResponseContentFromEntityStoreWithLookup in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php

... See full list

File

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

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

protected function storeSimpleEntry($path = null, $headers = array()) {
  if (null === $path) {
    $path = '/test';
  }
  $this->request = Request::create($path, 'get', array(), array(), array(), $headers);
  $this->response = new Response('test', 200, array(
    'Cache-Control' => 'max-age=420',
  ));
  return $this->store
    ->write($this->request, $this->response);
}