Skip to content

Commit

Permalink
Add VolatileRuntimeStorage for public and private tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinrob committed Nov 8, 2017
1 parent e2bfdc0 commit 14e5c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/PrivateCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;
use Kevinrob\GuzzleCache\Storage\FlysystemStorage;
use Kevinrob\GuzzleCache\Storage\Psr6CacheStorage;
use Kevinrob\GuzzleCache\Storage\VolatileRuntimeStorage;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use League\Flysystem\Adapter\Local;

Expand All @@ -31,6 +32,7 @@ public function testCacheProvider()
new FlysystemStorage(new Local($TMP_DIR)),
new Psr6CacheStorage(new ArrayCachePool()),
new CompressedDoctrineCacheStorage(new ArrayCache()),
new VolatileRuntimeStorage(),
];

$request = new Request('GET', 'test.local');
Expand Down
2 changes: 2 additions & 0 deletions tests/PublicCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;
use Kevinrob\GuzzleCache\Storage\FlysystemStorage;
use Kevinrob\GuzzleCache\Storage\Psr6CacheStorage;
use Kevinrob\GuzzleCache\Storage\VolatileRuntimeStorage;
use Kevinrob\GuzzleCache\Strategy\PublicCacheStrategy;
use League\Flysystem\Adapter\Local;
use Psr\Http\Message\RequestInterface;
Expand Down Expand Up @@ -99,6 +100,7 @@ public function testCacheProvider()
new FlysystemStorage(new Local($TMP_DIR)),
new Psr6CacheStorage(new ArrayCachePool()),
new CompressedDoctrineCacheStorage(new ArrayCache()),
new VolatileRuntimeStorage(),
];

$request = new Request('GET', 'test.local');
Expand Down

0 comments on commit 14e5c86

Please sign in to comment.