Skip to content

Commit ea52026

Browse files
authored
Merge pull request #49 from luscinium/master
Renamed config variable from `rates` to `latestRates`
2 parents 2cfd260 + aea3de9 commit ea52026

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)