@@ -113,7 +113,7 @@ public function testCatalogPriceExcludeTaxAndIncludeFPTOnly(array $weeTaxSetting
113
113
114
114
// final price and regular price are the sum of product price and FPT
115
115
$ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ]);
116
- $ this ->assertEquals (112.7 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
116
+ $ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
117
117
118
118
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ]);
119
119
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ]);
@@ -170,7 +170,7 @@ public function testCatalogPriceExcludeTaxAndIncludeFPTWithDescription(array $we
170
170
171
171
// final price and regular price are the sum of product price and FPT
172
172
$ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ]);
173
- $ this ->assertEquals (112.7 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
173
+ $ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
174
174
175
175
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ]);
176
176
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ]);
@@ -241,7 +241,7 @@ public function testCatalogPriceExcludeTaxCatalogDisplayIncludeTaxAndIncludeFPTO
241
241
242
242
// final price and regular price are the sum of product price, FPT and product tax
243
243
$ this ->assertEquals (240.4 , round ($ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ], 2 ));
244
- $ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
244
+ $ this ->assertEquals (240.4 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
245
245
246
246
$ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ], 2 ));
247
247
$ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ], 2 ));
@@ -308,7 +308,7 @@ public function testCatalogPriceExclTaxCatalogDisplayInclTaxAndInclFPTWithDescri
308
308
$ this ->assertNotEmpty ($ product ['price_range ' ]['minimum_price ' ]['fixed_product_taxes ' ]);
309
309
// final price and regular price are the sum of product price and FPT
310
310
$ this ->assertEquals (240.4 , round ($ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ], 2 ));
311
- $ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
311
+ $ this ->assertEquals (240.4 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
312
312
313
313
$ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ], 2 ));
314
314
$ this ->assertEquals (120.2 , round ($ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ], 2 ));
@@ -361,7 +361,7 @@ public function testCatalogPriceInclTaxCatalogDisplayExclTaxAndInclFPTWithDescri
361
361
362
362
// final price and regular price are the sum of product price and FPT
363
363
$ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ]);
364
- $ this ->assertEquals (112.7 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
364
+ $ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
365
365
366
366
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ]);
367
367
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ]);
@@ -419,7 +419,7 @@ public function testCatalogPriceInclTaxCatalogDisplayInclTaxAndInclFPTOnly(array
419
419
420
420
// final price and regular price are the sum of product price and FPT
421
421
$ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ]);
422
- $ this ->assertEquals (112.7 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
422
+ $ this ->assertEquals (225.4 , $ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ]);
423
423
424
424
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ]);
425
425
$ this ->assertEquals (112.7 , $ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ]);
@@ -493,7 +493,7 @@ public function testCatalogPriceIncTaxCatalogDisplayInclTaxInclFPTWithDescrWithT
493
493
$ fptWithTax = round (13.65 , 2 );
494
494
// final price and regular price are the sum of product price and FPT
495
495
$ this ->assertEquals (227.31 , round ($ product ['price_range ' ]['minimum_price ' ]['regular_price ' ]['value ' ], 2 ));
496
- $ this ->assertEquals (113.65 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
496
+ $ this ->assertEquals (227.31 , round ($ product ['price_range ' ]['minimum_price ' ]['final_price ' ]['value ' ], 2 ));
497
497
498
498
$ this ->assertEquals (113.65 , round ($ product ['price_range ' ]['maximum_price ' ]['regular_price ' ]['value ' ], 2 ));
499
499
$ this ->assertEquals (113.65 , round ($ product ['price_range ' ]['maximum_price ' ]['final_price ' ]['value ' ], 2 ));
0 commit comments