You are here

public function StoreTest::testDoesNotFindAnEntryWithLookupWhenTheBodyDoesNotExist in Zircon Profile 8.0

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

File

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

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