@@ -66,7 +66,7 @@ public static function getFiltersDataProvider(): array
66
66
return [
67
67
'auto_calculation_variation_with_small_price_difference ' => [
68
68
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
69
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
69
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
70
70
'expectation ' => [
71
71
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
72
72
['label ' => '$20.00 - $29.99 ' , 'value ' => '20-30 ' , 'count ' => 1 ],
@@ -75,15 +75,15 @@ public static function getFiltersDataProvider(): array
75
75
],
76
76
'auto_calculation_variation_with_big_price_difference ' => [
77
77
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
78
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
78
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
79
79
'expectation ' => [
80
80
['label ' => '$0.00 - $99.99 ' , 'value ' => '0-100 ' , 'count ' => 2 ],
81
81
['label ' => '$300.00 and above ' , 'value ' => '300-400 ' , 'count ' => 1 ],
82
82
],
83
83
],
84
84
'auto_calculation_variation_with_fixed_price_step ' => [
85
85
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
86
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 400.00 , 'simple1002 ' => 500.00 ],
86
+ 'products ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 400.00 , 'simple1002 ' => 500.00 ],
87
87
'expectation ' => [
88
88
['label ' => '$300.00 - $399.99 ' , 'value ' => '300-400 ' , 'count ' => 1 ],
89
89
['label ' => '$400.00 - $499.99 ' , 'value ' => '400-500 ' , 'count ' => 1 ],
@@ -95,7 +95,7 @@ public static function getFiltersDataProvider(): array
95
95
'catalog/layered_navigation/price_range_calculation ' => 'improved ' ,
96
96
'catalog/layered_navigation/interval_division_limit ' => 3 ,
97
97
],
98
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
98
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
99
99
'expectation ' => [
100
100
['label ' => '$0.00 - $19.99 ' , 'value ' => '0-20 ' , 'count ' => 1 ],
101
101
['label ' => '$20.00 and above ' , 'value ' => '20-50.01 ' , 'count ' => 2 ],
@@ -106,7 +106,7 @@ public static function getFiltersDataProvider(): array
106
106
'catalog/layered_navigation/price_range_calculation ' => 'improved ' ,
107
107
'catalog/layered_navigation/interval_division_limit ' => 3 ,
108
108
],
109
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
109
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
110
110
'expectation ' => [
111
111
['label ' => '$0.00 - $19.99 ' , 'value ' => '0-20 ' , 'count ' => 1 ],
112
112
['label ' => '$20.00 and above ' , 'value ' => '20-300.01 ' , 'count ' => 2 ],
@@ -117,7 +117,7 @@ public static function getFiltersDataProvider(): array
117
117
'catalog/layered_navigation/price_range_calculation ' => 'manual ' ,
118
118
'catalog/layered_navigation/price_range_step ' => 200 ,
119
119
],
120
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
120
+ 'products ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
121
121
'expectation ' => [
122
122
['label ' => '$200.00 - $399.99 ' , 'value ' => '200-400 ' , 'count ' => 2 ],
123
123
['label ' => '$400.00 and above ' , 'value ' => '400-600 ' , 'count ' => 1 ],
@@ -128,7 +128,7 @@ public static function getFiltersDataProvider(): array
128
128
'catalog/layered_navigation/price_range_calculation ' => 'manual ' ,
129
129
'catalog/layered_navigation/price_range_step ' => 10 ,
130
130
],
131
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
131
+ 'products ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
132
132
'expectation ' => [
133
133
['label ' => '$300.00 - $309.99 ' , 'value ' => '300-310 ' , 'count ' => 2 ],
134
134
['label ' => '$500.00 and above ' , 'value ' => '500-510 ' , 'count ' => 1 ],
@@ -140,7 +140,7 @@ public static function getFiltersDataProvider(): array
140
140
'catalog/layered_navigation/price_range_step ' => 10 ,
141
141
'catalog/layered_navigation/price_range_max_intervals ' => 10 ,
142
142
],
143
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
143
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
144
144
'expectation ' => [
145
145
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
146
146
['label ' => '$20.00 - $29.99 ' , 'value ' => '20-30 ' , 'count ' => 1 ],
@@ -153,7 +153,7 @@ public static function getFiltersDataProvider(): array
153
153
'catalog/layered_navigation/price_range_step ' => 10 ,
154
154
'catalog/layered_navigation/price_range_max_intervals ' => 2 ,
155
155
],
156
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
156
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
157
157
'expectation ' => [
158
158
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
159
159
['label ' => '$20.00 and above ' , 'value ' => '20-30.01 ' , 'count ' => 2 ],
@@ -181,33 +181,33 @@ public function testGetActiveFilters(array $config, array $products, array $expe
181
181
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
182
182
* @return array
183
183
*/
184
- public function getActiveFiltersDataProvider (): array
184
+ public static function getActiveFiltersDataProvider (): array
185
185
{
186
186
return [
187
187
'auto_calculation ' => [
188
188
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
189
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
189
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
190
190
'expectation ' => ['label ' => '$10.00 - $19.99 ' , 'count ' => 0 ],
191
- 'filter_value ' => '10-20 ' ,
191
+ 'filterValue ' => '10-20 ' ,
192
192
],
193
193
'improved_calculation ' => [
194
194
'config ' => [
195
195
'catalog/layered_navigation/price_range_calculation ' => 'improved ' ,
196
196
'catalog/layered_navigation/interval_division_limit ' => 3 ,
197
197
],
198
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
198
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
199
199
'expectation ' => ['label ' => '$0.00 - $19.99 ' , 'count ' => 0 ],
200
- 'filter_value ' => '0-20 ' ,
200
+ 'filterValue ' => '0-20 ' ,
201
201
],
202
202
'manual_calculation ' => [
203
203
'config ' => [
204
204
'catalog/layered_navigation/price_range_calculation ' => 'manual ' ,
205
205
'catalog/layered_navigation/price_range_step ' => 10 ,
206
206
'catalog/layered_navigation/price_range_max_intervals ' => 10 ,
207
207
],
208
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
208
+ 'products ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
209
209
'expectation ' => ['label ' => '$10.00 - $19.99 ' , 'count ' => 0 ],
210
- 'filter_value ' => '10-20 ' ,
210
+ 'filterValue ' => '10-20 ' ,
211
211
],
212
212
];
213
213
}
0 commit comments