public function StoreTest::testDoesNotFindAnEntryWithLookupWhenTheBodyDoesNotExist

File

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

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function testDoesNotFindAnEntryWithLookupWhenTheBodyDoesNotExist() {
  $this
    ->storeSimpleEntry();
  $this
    ->assertNotNull($this->response->headers
    ->get('X-Content-Digest'));
  $path = $this
    ->getStorePath($this->response->headers
    ->get('X-Content-Digest'));
  @unlink($path);
  $this
    ->assertNull($this->store
    ->lookup($this->request));
}