@@ -64,6 +64,45 @@ protected function setUp(): void
64
64
parent ::setUp ();
65
65
}
66
66
67
+ #[
68
+ ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_INCLUDES_TAX , 0 , 'store ' , 'default ' ),
69
+ ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE , 3 , 'store ' , 'default ' ),
70
+ DataFixture(
71
+ TaxRateFixture::class,
72
+ as: 'rate '
73
+ ),
74
+ DataFixture(
75
+ TaxRuleFixture::class,
76
+ [
77
+ 'customer_tax_class_ids ' => [3 ],
78
+ 'product_tax_class_ids ' => [2 ],
79
+ 'tax_rate_ids ' => ['$rate.id$ ' ]
80
+ ],
81
+ 'rule '
82
+ ),
83
+ DataFixture(CategoryFixture::class, as: 'category ' ),
84
+ DataFixture(
85
+ ProductFixture::class,
86
+ [
87
+ 'sku ' => 'simple-product-tax-both ' ,
88
+ 'category_ids ' => [1 , '$category.id$ ' ],
89
+ 'tier_prices ' => [
90
+ [
91
+ 'customer_group_id ' => Group::NOT_LOGGED_IN_ID ,
92
+ 'qty ' => 2 ,
93
+ 'value ' => 5
94
+ ]
95
+ ]
96
+ ]
97
+ )
98
+ ]
99
+ public function testRenderAmountMinimalProductWithTierPricesShouldShowMinTierPriceWithTaxes ()
100
+ {
101
+ $ priceHtml = $ this ->getProductPriceHtml ('simple-product-tax-both ' );
102
+ $ this ->assertFinalPrice ($ priceHtml , 10.00 );
103
+ $ this ->assertAsLowAsPriceWithTaxes ($ priceHtml , 5.500001 , 5.00 );
104
+ }
105
+
67
106
/**
68
107
* Assert that product price without additional price configurations will render as expected.
69
108
*
@@ -339,43 +378,4 @@ private function getListProductBlock(): ListProduct
339
378
340
379
return $ categoryProductsBlock ->getChildBlock ('product_list ' );
341
380
}
342
-
343
- #[
344
- ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_INCLUDES_TAX , 0 , 'store ' , 'default ' ),
345
- ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE , 3 , 'store ' , 'default ' ),
346
- DataFixture(
347
- TaxRateFixture::class,
348
- as: 'rate '
349
- ),
350
- DataFixture(
351
- TaxRuleFixture::class,
352
- [
353
- 'customer_tax_class_ids ' => [3 ],
354
- 'product_tax_class_ids ' => [2 ],
355
- 'tax_rate_ids ' => ['$rate.id$ ' ]
356
- ],
357
- 'rule '
358
- ),
359
- DataFixture(CategoryFixture::class, as: 'category ' ),
360
- DataFixture(
361
- ProductFixture::class,
362
- [
363
- 'sku ' => 'simple-product-tax-both ' ,
364
- 'category_ids ' => ['1 ' , '$category.id$ ' ],
365
- 'tier_prices ' => [
366
- [
367
- 'customer_group_id ' => Group::NOT_LOGGED_IN_ID ,
368
- 'qty ' => 2 ,
369
- 'value ' => 5
370
- ]
371
- ]
372
- ]
373
- )
374
- ]
375
- public function testRenderAmountMinimalProductWithTierPricesShouldShowMinTierPriceWithTaxes ()
376
- {
377
- $ priceHtml = $ this ->getProductPriceHtml ('simple-product-tax-both ' );
378
- $ this ->assertFinalPrice ($ priceHtml , 10.00 );
379
- $ this ->assertAsLowAsPriceWithTaxes ($ priceHtml , 5.500001 , 5.00 );
380
- }
381
381
}
0 commit comments