@@ -15,6 +15,7 @@ public function testProcessConfigurationWithDefaultConfiguration(): void
1515 $ expectedBundleDefaultConfig = [
1616 'ping_error_response_code ' => null ,
1717 'health_error_response_code ' => null ,
18+ 'redis_dsn ' => null ,
1819 'health_checks ' => [],
1920 'ping_checks ' => [],
2021 ];
@@ -40,6 +41,7 @@ public function testProcessConfigurationHealthChecks(): void
4041 'ping_checks ' => [],
4142 'ping_error_response_code ' => null ,
4243 'health_error_response_code ' => null ,
44+ 'redis_dsn ' => null ,
4345 ];
4446 $ new = ['health_checks ' => [
4547 ['id ' => 'symfony_health_check.doctrine_check ' ]
@@ -60,6 +62,7 @@ public function testProcessConfigurationPing(): void
6062 ],
6163 'ping_error_response_code ' => null ,
6264 'health_error_response_code ' => null ,
65+ 'redis_dsn ' => null ,
6366 ];
6467 $ new = ['health_checks ' => [], 'ping_checks ' => [
6568 ['id ' => 'symfony_health_check.doctrine_check ' ]
@@ -82,6 +85,7 @@ public function testProcessConfigurationPingAndHealthChecks(): void
8285 ],
8386 'ping_error_response_code ' => null ,
8487 'health_error_response_code ' => null ,
88+ 'redis_dsn ' => null ,
8589 ];
8690 $ new = [
8791 'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
@@ -105,6 +109,7 @@ public function testProcessConfigurationCustomErrorCode(): void
105109 ],
106110 'ping_error_response_code ' => 404 ,
107111 'health_error_response_code ' => 500 ,
112+ 'redis_dsn ' => null ,
108113 ];
109114 $ new = [
110115 'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
@@ -119,6 +124,33 @@ public function testProcessConfigurationCustomErrorCode(): void
119124 );
120125 }
121126
127+ public function testItProcessConfigurationWithRedisDsn (): void
128+ {
129+ $ expectedConfig = [
130+ 'health_checks ' => [
131+ ['id ' => 'symfony_health_check.doctrine_check ' ]
132+ ],
133+ 'ping_checks ' => [
134+ ['id ' => 'symfony_health_check.doctrine_check ' ]
135+ ],
136+ 'ping_error_response_code ' => 404 ,
137+ 'health_error_response_code ' => 500 ,
138+ 'redis_dsn ' => 'redis://redis ' ,
139+ ];
140+ $ new = [
141+ 'health_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
142+ 'ping_checks ' => [['id ' => 'symfony_health_check.doctrine_check ' ]],
143+ 'ping_error_response_code ' => 404 ,
144+ 'health_error_response_code ' => 500 ,
145+ 'redis_dsn ' => 'redis://redis ' ,
146+ ];
147+
148+ self ::assertSame (
149+ $ expectedConfig ,
150+ $ this ->processConfiguration ($ new )
151+ );
152+ }
153+
122154 private function processConfiguration (array $ values ): array
123155 {
124156 $ processor = new Processor ();
0 commit comments