@@ -71,15 +71,15 @@ public function getFiltersDataProvider(): array
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 ],
74
- ['label ' => '$50.00 and above ' , 'value ' => '50- ' , 'count ' => 1 ],
74
+ ['label ' => '$50.00 and above ' , 'value ' => '50-60 ' , 'count ' => 1 ],
75
75
],
76
76
],
77
77
'auto_calculation_variation_with_big_price_difference ' => [
78
78
'config ' => ['catalog/layered_navigation/price_range_calculation ' => 'auto ' ],
79
79
'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
80
80
'expectation ' => [
81
- ['label ' => '$0.00 - $99.99 ' , 'value ' => '-100 ' , 'count ' => 2 ],
82
- ['label ' => '$300.00 and above ' , 'value ' => '300- ' , 'count ' => 1 ],
81
+ ['label ' => '$0.00 - $99.99 ' , 'value ' => '0 -100 ' , 'count ' => 2 ],
82
+ ['label ' => '$300.00 and above ' , 'value ' => '300-400 ' , 'count ' => 1 ],
83
83
],
84
84
],
85
85
'auto_calculation_variation_with_fixed_price_step ' => [
@@ -88,7 +88,7 @@ public function getFiltersDataProvider(): array
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 ],
91
- ['label ' => '$500.00 and above ' , 'value ' => '500- ' , 'count ' => 1 ],
91
+ ['label ' => '$500.00 and above ' , 'value ' => '500-600 ' , 'count ' => 1 ],
92
92
],
93
93
],
94
94
'improved_calculation_variation_with_small_price_difference ' => [
@@ -98,8 +98,8 @@ public function getFiltersDataProvider(): array
98
98
],
99
99
'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 50.00 ],
100
100
'expectation ' => [
101
- ['label ' => '$0.00 - $49 .99 ' , 'value ' => '-50 ' , 'count ' => 2 ],
102
- ['label ' => '$50 .00 and above ' , 'value ' => '50- ' , 'count ' => 1 ],
101
+ ['label ' => '$0.00 - $19 .99 ' , 'value ' => '0-20 ' , 'count ' => 1 ],
102
+ ['label ' => '$20 .00 and above ' , 'value ' => '20-50 ' , 'count ' => 2 ],
103
103
],
104
104
],
105
105
'improved_calculation_variation_with_big_price_difference ' => [
@@ -109,8 +109,8 @@ public function getFiltersDataProvider(): array
109
109
],
110
110
'products_data ' => ['simple1000 ' => 10.00 , 'simple1001 ' => 20.00 , 'simple1002 ' => 300.00 ],
111
111
'expectation ' => [
112
- ['label ' => '$0.00 - $299 .99 ' , 'value ' => '-300 ' , 'count ' => 2.0 ],
113
- ['label ' => '$300 .00 and above ' , 'value ' => '300- ' , 'count ' => 1.0 ],
112
+ ['label ' => '$0.00 - $19 .99 ' , 'value ' => '0-20 ' , 'count ' => 1 ],
113
+ ['label ' => '$20 .00 and above ' , 'value ' => '20-300 ' , 'count ' => 2 ],
114
114
],
115
115
],
116
116
'manual_calculation_with_price_step_200 ' => [
@@ -121,7 +121,7 @@ public function getFiltersDataProvider(): array
121
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
- ['label ' => '$400.00 and above ' , 'value ' => '400- ' , 'count ' => 1 ],
124
+ ['label ' => '$400.00 and above ' , 'value ' => '400-600 ' , 'count ' => 1 ],
125
125
],
126
126
],
127
127
'manual_calculation_with_price_step_10 ' => [
@@ -132,7 +132,7 @@ public function getFiltersDataProvider(): array
132
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
- ['label ' => '$500.00 and above ' , 'value ' => '500- ' , 'count ' => 1 ],
135
+ ['label ' => '$500.00 and above ' , 'value ' => '500-510 ' , 'count ' => 1 ],
136
136
],
137
137
],
138
138
'manual_calculation_with_number_of_intervals_10 ' => [
@@ -145,7 +145,7 @@ public function getFiltersDataProvider(): array
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 ],
148
- ['label ' => '$30.00 and above ' , 'value ' => '30- ' , 'count ' => 1 ],
148
+ ['label ' => '$30.00 and above ' , 'value ' => '30-40 ' , 'count ' => 1 ],
149
149
],
150
150
],
151
151
'manual_calculation_with_number_of_intervals_2 ' => [
@@ -157,7 +157,7 @@ public function getFiltersDataProvider(): array
157
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
- ['label ' => '$20.00 and above ' , 'value ' => '20- ' , 'count ' => 2 ],
160
+ ['label ' => '$20.00 and above ' , 'value ' => '20-30 ' , 'count ' => 2 ],
161
161
],
162
162
],
163
163
];
0 commit comments