19
19
use Magento \Framework \Pricing \Render \RendererPool ;
20
20
use Magento \Framework \View \TemplateEngine \Php ;
21
21
use Magento \Framework \View \TemplateEnginePool ;
22
+ use Magento \Tax \Helper \Data ;
22
23
use Magento \Tax \Model \Config as TaxConfig ;
23
24
use Magento \Tax \Test \Fixture \CustomerTaxClass as CustomerTaxClassFixture ;
24
25
use Magento \Tax \Test \Fixture \ProductTaxClass as ProductTaxClassFixture ;
25
26
use Magento \Tax \Test \Fixture \TaxRate as TaxRateFixture ;
26
27
use Magento \Tax \Test \Fixture \TaxRule as TaxRuleFixture ;
27
- use Magento \TestFramework \Fixture \AppIsolation ;
28
- use Magento \TestFramework \Fixture \Config ;
28
+ use Magento \TestFramework \Fixture \Config as ConfigFixture ;
29
29
use Magento \TestFramework \Fixture \DataFixture ;
30
- use Magento \TestFramework \Fixture \DbIsolation ;
31
30
use Magento \TestFramework \Helper \Bootstrap ;
32
31
33
32
/**
@@ -160,10 +159,22 @@ public function testProductSetDifferentStorePricesWithoutTierPriceShouldNotShowA
160
159
}
161
160
162
161
#[
163
- AppIsolation(true ),
164
- DbIsolation(false ),
165
- Config(TaxConfig::CONFIG_XML_PATH_PRICE_INCLUDES_TAX , 0 ),
166
- Config(TaxConfig::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE , 3 ),
162
+ ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_INCLUDES_TAX , 0 , 'store ' , 'default ' ),
163
+ ConfigFixture(TaxConfig::CONFIG_XML_PATH_PRICE_DISPLAY_TYPE , 3 , 'store ' , 'default ' ),
164
+ DataFixture(
165
+ TaxRateFixture::class,
166
+ [],
167
+ 'rate '
168
+ ),
169
+ DataFixture(
170
+ TaxRuleFixture::class,
171
+ [
172
+ 'customer_tax_class_ids ' => [3 ],
173
+ 'product_tax_class_ids ' => [2 ],
174
+ 'tax_rate_ids ' => ['$rate.id$ ' ]
175
+ ],
176
+ 'rule '
177
+ ),
167
178
DataFixture(CategoryFixture::class, as: 'category ' ),
168
179
DataFixture(
169
180
ProductFixture::class,
@@ -178,24 +189,7 @@ public function testProductSetDifferentStorePricesWithoutTierPriceShouldNotShowA
178
189
]
179
190
]
180
191
]
181
- ),
182
- DataFixture(CustomerTaxClassFixture::class, as: 'customerTax ' ),
183
- DataFixture(ProductTaxClassFixture::class, as: 'productTax ' ),
184
- DataFixture(
185
- TaxRateFixture::class,
186
- [],
187
- 'rate '
188
- ),
189
- DataFixture(
190
- TaxRuleFixture::class,
191
- [
192
- 'customer_tax_class_ids ' => ['$customerTax.id$ ' ],
193
- 'product_tax_class_ids ' => ['$productTax.id$ ' ],
194
- 'tax_rate_ids ' => ['$rate.id$ ' ]
195
- ],
196
- 'rule '
197
192
)
198
-
199
193
]
200
194
public function testRenderAmountMinimalProductWithTierPricesShouldShowMinTierPriceWithTaxes ()
201
195
{
0 commit comments