Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940d591 commit 54609b9Copy full SHA for 54609b9
src/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php
@@ -66,11 +66,17 @@ public function testRemovesEntriesForKeyWithPurge()
66
{
67
$request = Request::create('/foo');
68
$this->store->write($request, new Response('foo'));
69
- $this->assertNotEmpty($this->getStoreMetadata($request));
+
70
+ $metadata = $this->getStoreMetadata($request);
71
+ $this->assertNotEmpty($metadata);
72
73
$this->assertTrue($this->store->purge('/foo'));
74
$this->assertEmpty($this->getStoreMetadata($request));
75
76
+ // cached content should be kept after purging
77
+ $path = $this->store->getPath($metadata[0][1]['x-content-digest'][0]);
78
+ $this->assertTrue(is_file($path));
79
80
$this->assertFalse($this->store->purge('/bar'));
81
}
82
0 commit comments