File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1717
1818class CachePoolsTest extends WebTestCase
1919{
20- protected function setUp ()
21- {
22- $ _SERVER ['SYMFONY__REDIS_HOST ' ] = getenv ('REDIS_HOST ' );
23- }
24-
25- protected function tearDown ()
26- {
27- unset($ _SERVER ['SYMFONY__REDIS_HOST ' ]);
28- }
29-
3020 public function testCachePools ()
3121 {
3222 $ this ->doTestCachePools (array (), FilesystemAdapter::class);
Original file line number Diff line number Diff line change 11imports :
22 - { resource: ../config/default.yml }
33
4+ parameters :
5+ env(REDIS_HOST) : ' localhost'
6+
47framework :
58 cache :
69 app : cache.adapter.redis
7- default_redis_provider : " redis://%redis_host %"
10+ default_redis_provider : " redis://%env(REDIS_HOST) %"
811 pools :
912 cache.pool1 :
1013 public : true
Original file line number Diff line number Diff line change 11imports :
22 - { resource: ../config/default.yml }
33
4+ parameters :
5+ env(REDIS_HOST) : ' localhost'
6+
47services :
58 cache.test_redis_connection :
69 public : false
710 class : Redis
811 calls :
9- - [connect, ['%redis_host %']]
12+ - [connect, ['%env(REDIS_HOST) %']]
1013
1114 cache.app :
1215 parent : cache.adapter.redis
You can’t perform that action at this time.
0 commit comments