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 17
17
18
18
class CachePoolsTest extends WebTestCase
19
19
{
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
-
30
20
public function testCachePools ()
31
21
{
32
22
$ this ->doTestCachePools (array (), FilesystemAdapter::class);
Original file line number Diff line number Diff line change 1
1
imports :
2
2
- { resource: ../config/default.yml }
3
3
4
+ parameters :
5
+ env(REDIS_HOST) : ' localhost'
6
+
4
7
framework :
5
8
cache :
6
9
app : cache.adapter.redis
7
- default_redis_provider : " redis://%redis_host %"
10
+ default_redis_provider : " redis://%env(REDIS_HOST) %"
8
11
pools :
9
12
cache.pool1 :
10
13
public : true
Original file line number Diff line number Diff line change 1
1
imports :
2
2
- { resource: ../config/default.yml }
3
3
4
+ parameters :
5
+ env(REDIS_HOST) : ' localhost'
6
+
4
7
services :
5
8
cache.test_redis_connection :
6
9
public : false
7
10
class : Redis
8
11
calls :
9
- - [connect, ['%redis_host %']]
12
+ - [connect, ['%env(REDIS_HOST) %']]
10
13
11
14
cache.app :
12
15
parent : cache.adapter.redis
You can’t perform that action at this time.
0 commit comments