Skip to content

Commit 26f42fe

Browse files
committed
MAGETWO-87467: Fix modularity of \Magento\Catalog\Block\Adminhtml\Product\Edit\JsTest
- Add unused tax class to break bad-written tests
1 parent 0294817 commit 26f42fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dev/tests/integration/testsuite/Magento/Tax/_files/tax_classes.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
\Magento\Tax\Model\ClassModel::TAX_CLASS_TYPE_PRODUCT
3939
)->save();
4040

41+
// Tax class created but not used in the rule to ensure that unused tax classes are handled properly
42+
$productTaxClass3 = $objectManager->create(
43+
\Magento\Tax\Model\ClassModel::class
44+
)->setClassName(
45+
'ProductTaxClass3'
46+
)->setClassType(
47+
\Magento\Tax\Model\ClassModel::TAX_CLASS_TYPE_PRODUCT
48+
)->save();
49+
4150
$taxRate = [
4251
'tax_country_id' => 'US',
4352
'tax_region_id' => '12',

0 commit comments

Comments
 (0)