Skip to content

Commit 947cf3b

Browse files
committed
ACP2E-1634: added integration test
1 parent 2f1d05e commit 947cf3b

File tree

1 file changed

+18
-24
lines changed

1 file changed

+18
-24
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Pricing/Render/FinalPriceBoxTest.php

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
use Magento\Framework\Pricing\Render\RendererPool;
2020
use Magento\Framework\View\TemplateEngine\Php;
2121
use Magento\Framework\View\TemplateEnginePool;
22+
use Magento\Tax\Helper\Data;
2223
use Magento\Tax\Model\Config as TaxConfig;
2324
use Magento\Tax\Test\Fixture\CustomerTaxClass as CustomerTaxClassFixture;
2425
use Magento\Tax\Test\Fixture\ProductTaxClass as ProductTaxClassFixture;
2526
use Magento\Tax\Test\Fixture\TaxRate as TaxRateFixture;
2627
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;
2929
use Magento\TestFramework\Fixture\DataFixture;
30-
use Magento\TestFramework\Fixture\DbIsolation;
3130
use Magento\TestFramework\Helper\Bootstrap;
3231

3332
/**
@@ -160,10 +159,22 @@ public function testProductSetDifferentStorePricesWithoutTierPriceShouldNotShowA
160159
}
161160

162161
#[
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+
),
167178
DataFixture(CategoryFixture::class, as: 'category'),
168179
DataFixture(
169180
ProductFixture::class,
@@ -178,24 +189,7 @@ public function testProductSetDifferentStorePricesWithoutTierPriceShouldNotShowA
178189
]
179190
]
180191
]
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'
197192
)
198-
199193
]
200194
public function testRenderAmountMinimalProductWithTierPricesShouldShowMinTierPriceWithTaxes()
201195
{

0 commit comments

Comments
 (0)