File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public function getConfigTreeBuilder()
184184 ->arrayNode ('array ' )
185185 ->children ()
186186 ->integerNode ('priority ' )->defaultValue (0 )->end ()
187- ->variableNode ('rates ' )
187+ ->variableNode ('latestRates ' )
188188 ->treatFalseLike (null )
189189 ->treatTrueLike (null )
190190 ->isRequired ()
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public function provideValidProvidersConfigs(): array
135135 [['xchangeapi ' => ['api-key ' => 'any ' ]]],
136136 [[
137137 'array ' => [
138- 'rates ' => [
138+ 'latestRates ' => [
139139 'EUR/USD ' => 1.1 ,
140140 'EUR/GBP ' => 1.5 ,
141141 ],
@@ -151,7 +151,7 @@ public function provideValidProvidersConfigs(): array
151151 ]],
152152 [[
153153 'array ' => [
154- 'rates ' => [
154+ 'latestRates ' => [
155155 'EUR/USD ' => 1.1 ,
156156 'EUR/GBP ' => 1.5 ,
157157 ],
@@ -184,10 +184,10 @@ public function provideInvalidProvidersConfigs(): array
184184 [['array ' => null ]],
185185 [['array ' => []]],
186186 [['array ' => ['EUR/GBP ' => 1.5 ]]],
187- [['array ' => ['rates ' => [['EUR/GBP ' => 0 ]]]]],
188- [['array ' => ['rates ' => [['any ' => 'any ' ]]]]],
189- [['array ' => ['rates ' => [['2017-01-01 ' => 'any ' ]]]]],
190- [['array ' => ['rates ' => [['2017-01-01 ' => ['any ' => 'any ' ]]]]]],
187+ [['array ' => ['latestRates ' => [['EUR/GBP ' => 0 ]]]]],
188+ [['array ' => ['latestRates ' => [['any ' => 'any ' ]]]]],
189+ [['array ' => ['latestRates ' => [['2017-01-01 ' => 'any ' ]]]]],
190+ [['array ' => ['latestRates ' => [['2017-01-01 ' => ['any ' => 'any ' ]]]]]],
191191 ];
192192 }
193193
You can’t perform that action at this time.
0 commit comments