File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,17 @@ public function getConfigTreeBuilder()
5959 ->end ()
6060 ->arrayNode ('providers ' )
6161 ->children ()
62+ ->arrayNode ('abstract_api ' )
63+ ->children ()
64+ ->integerNode ('priority ' )->defaultValue (0 )->end ()
65+ ->scalarNode ('api_key ' )
66+ ->treatFalseLike (null )
67+ ->treatTrueLike (null )
68+ ->isRequired ()
69+ ->cannotBeEmpty ()
70+ ->end ()
71+ ->end ()
72+ ->end ()
6273 ->arrayNode ('fixer ' )
6374 ->children ()
6475 ->integerNode ('priority ' )->defaultValue (0 )->end ()
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ public function testInvalidCacheConfig(array $cache): void
115115 public function provideValidProvidersConfigs (): array
116116 {
117117 return [
118+ [['abstract_api ' => ['api_key ' => 'any ' ]]],
118119 [['central_bank_of_czech_republic ' => null ]],
119120 [['central_bank_of_republic_turkey ' => []]],
120121 [['european_central_bank ' => null ]],
You can’t perform that action at this time.
0 commit comments