File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ public function getConfigTreeBuilder()
156156 ->variableNode ('historicalRates ' )
157157 ->treatFalseLike (null )
158158 ->treatTrueLike (null )
159- ->isRequired ()
160159 ->cannotBeEmpty ()
161160 ->validate ()
162161 ->ifTrue (function ($ config ) {
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ public function provideValidProvidersConfigs()
140140 ],
141141 ],
142142 ]],
143+ [[
144+ 'array ' => [
145+ 'rates ' => [
146+ 'EUR/USD ' => 1.1 ,
147+ 'EUR/GBP ' => 1.5 ,
148+ ],
149+ ],
150+ ]],
143151 ];
144152 }
145153
@@ -165,7 +173,6 @@ public function provideInvalidProvidersConfigs()
165173 [['array ' => null ]],
166174 [['array ' => []]],
167175 [['array ' => ['EUR/GBP ' => 1.5 ]]],
168- [['array ' => ['rates ' => ['EUR/GBP ' => 1.5 ]]]],
169176 [['array ' => ['rates ' => [['EUR/GBP ' => 0 ]]]]],
170177 [['array ' => ['rates ' => [['any ' => 'any ' ]]]]],
171178 [['array ' => ['rates ' => [['2017-01-01 ' => 'any ' ]]]]],
You can’t perform that action at this time.
0 commit comments