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);
}