@@ -67,7 +67,7 @@ public function getFiltersDataProvider(): array
67
67
return [
68
68
'auto_calculation_variation_with_small_price_difference ' => [
69
69
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
70
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 50.00 ],
70
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
71
71
'expectation ' => [
72
72
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
73
73
['label ' => '$20.00 - $29.99 ' , 'value ' => '20-30 ' , 'count ' => 1 ],
@@ -76,15 +76,15 @@ public function getFiltersDataProvider(): array
76
76
],
77
77
'auto_calculation_variation_with_big_price_difference ' => [
78
78
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
79
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 300.00 ],
79
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
80
80
'expectation ' => [
81
81
['label ' => '$0.00 - $99.99 ' , 'value ' => '-100 ' , 'count ' => 2 ],
82
82
['label ' => '$300.00 and above ' , 'value ' => '300- ' , 'count ' => 1 ],
83
83
],
84
84
],
85
85
'auto_calculation_variation_with_fixed_price_step ' => [
86
86
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
87
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 400.00 , 'simple2 ' => 500.00 ],
87
+ 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 400.00 , 'simple1002 ' => 500.00 ],
88
88
'expectation ' => [
89
89
['label ' => '$300.00 - $399.99 ' , 'value ' => '300-400 ' , 'count ' => 1 ],
90
90
['label ' => '$400.00 - $499.99 ' , 'value ' => '400-500 ' , 'count ' => 1 ],
@@ -96,7 +96,7 @@ public function getFiltersDataProvider(): array
96
96
'catalog/layered_navigation/price_range_calculation ' => 'improved ' ,
97
97
'catalog/layered_navigation/interval_division_limit ' => 3 ,
98
98
],
99
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 50.00 ],
99
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
100
100
'expectation ' => [
101
101
['label ' => '$0.00 - $49.99 ' , 'value ' => '-50 ' , 'count ' => 2 ],
102
102
['label ' => '$50.00 and above ' , 'value ' => '50- ' , 'count ' => 1 ],
@@ -107,7 +107,7 @@ public function getFiltersDataProvider(): array
107
107
'catalog/layered_navigation/price_range_calculation ' => 'improved ' ,
108
108
'catalog/layered_navigation/interval_division_limit ' => 3 ,
109
109
],
110
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 300.00 ],
110
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
111
111
'expectation ' => [
112
112
['label ' => '$0.00 - $299.99 ' , 'value ' => '-300 ' , 'count ' => 2.0 ],
113
113
['label ' => '$300.00 and above ' , 'value ' => '300- ' , 'count ' => 1.0 ],
@@ -118,7 +118,7 @@ public function getFiltersDataProvider(): array
118
118
'catalog/layered_navigation/price_range_calculation ' => 'manual ' ,
119
119
'catalog/layered_navigation/price_range_step ' => 200 ,
120
120
],
121
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple2 ' => 500.00 ],
121
+ 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
122
122
'expectation ' => [
123
123
['label ' => '$200.00 - $399.99 ' , 'value ' => '200-400 ' , 'count ' => 2 ],
124
124
['label ' => '$400.00 and above ' , 'value ' => '400- ' , 'count ' => 1 ],
@@ -129,7 +129,7 @@ public function getFiltersDataProvider(): array
129
129
'catalog/layered_navigation/price_range_calculation ' => 'manual ' ,
130
130
'catalog/layered_navigation/price_range_step ' => 10 ,
131
131
],
132
- 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple2 ' => 500.00 ],
132
+ 'products_data ' => ['simple1000 ' => 300.00 , 'simple1001 ' => 300.00 , 'simple1002 ' => 500.00 ],
133
133
'expectation ' => [
134
134
['label ' => '$300.00 - $309.99 ' , 'value ' => '300-310 ' , 'count ' => 2 ],
135
135
['label ' => '$500.00 and above ' , 'value ' => '500- ' , 'count ' => 1 ],
@@ -141,7 +141,7 @@ public function getFiltersDataProvider(): array
141
141
'catalog/layered_navigation/price_range_step ' => 10 ,
142
142
'catalog/layered_navigation/price_range_max_intervals ' => 10 ,
143
143
],
144
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 30.00 ],
144
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
145
145
'expectation ' => [
146
146
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
147
147
['label ' => '$20.00 - $29.99 ' , 'value ' => '20-30 ' , 'count ' => 1 ],
@@ -154,7 +154,7 @@ public function getFiltersDataProvider(): array
154
154
'catalog/layered_navigation/price_range_step ' => 10 ,
155
155
'catalog/layered_navigation/price_range_max_intervals ' => 2 ,
156
156
],
157
- 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple2 ' => 30.00 ],
157
+ 'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 30.00 ],
158
158
'expectation ' => [
159
159
['label ' => '$10.00 - $19.99 ' , 'value ' => '10-20 ' , 'count ' => 1 ],
160
160
['label ' => '$20.00 and above ' , 'value ' => '20- ' , 'count ' => 2 ],
0 commit comments