File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Test/Unit/Model/Config/Processor Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ private function prepareWebsitesConfig(
111
111
array $ websitesConfig
112
112
) {
113
113
$ result = [];
114
+
115
+ foreach ($ websitesConfig as $ websiteCode => $ webConfiguration ) {
116
+ if (!isset ($ websitesConfig [strtolower ($ websiteCode )])) {
117
+ $ websitesConfig [strtolower ($ websiteCode )] = $ webConfiguration ;
118
+ unset($ websitesConfig [$ websiteCode ]);
119
+ }
120
+ }
114
121
foreach ((array )$ this ->websiteData as $ website ) {
115
122
$ code = $ website ['code ' ];
116
123
$ id = $ website ['website_id ' ];
@@ -136,6 +143,12 @@ private function prepareStoresConfig(
136
143
) {
137
144
$ result = [];
138
145
146
+ foreach ($ storesConfig as $ storeCode => $ storeConfiguration ) {
147
+ if (!isset ($ storesConfig [strtolower ($ storeCode )])) {
148
+ $ storesConfig [strtolower ($ storeCode )] = $ storeConfiguration ;
149
+ unset($ storesConfig [$ storeCode ]);
150
+ }
151
+ }
139
152
foreach ((array )$ this ->storeData as $ store ) {
140
153
$ code = $ store ['code ' ];
141
154
$ id = $ store ['store_id ' ];
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function testProcessWithStoreCodeCapitalLetters()
78
78
$ result = $ this ->fallback ->process (
79
79
[
80
80
'stores ' => [
81
- 'two ' => [
81
+ 'TWO ' => [
82
82
'checkout ' => [
83
83
'options ' => ['guest_checkout ' => 0 ]
84
84
]
You can’t perform that action at this time.
0 commit comments