Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testCalculateTaxUnitBased ($quoteDetailsData, $expected) | |
calculateUnitBasedDataProvider () | |
testCalculateTaxTotalBased ($quoteDetailsData, $expectedTaxDetails, $storeId=null) | |
calculateTaxTotalBasedDataProvider () | |
calculateTaxNoTaxInclDataProvider () | |
calculateTaxTaxInclDataProvider () | |
calculateTaxRoundingDataProvider () | |
testCalculateTaxRowBased ($quoteDetailsData, $expectedTaxDetails) | |
calculateTaxRowBasedDataProvider () | |
testMultiRulesRowBased ($quoteDetailsData, $expectedTaxDetails) | |
multiRulesRowBasedDataProvider () | |
testMultiRulesTotalBased ($quoteDetailsData, $expectedTaxDetails) | |
multiRulesTotalBasedDataProvider () | |
testMultiRulesUnitBased ($quoteDetailsData, $expectedTaxDetails) | |
multiRulesUnitBasedDataProvider () | |
Protected Member Functions | |
setUp () | |
tearDown () | |
setupMultiRuleQuote () | |
getBaseQuoteResult () | |
@magentoDbIsolation enabled @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 16 of file TaxCalculationTest.php.
calculateTaxNoTaxInclDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 842 of file TaxCalculationTest.php.
calculateTaxRoundingDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 1134 of file TaxCalculationTest.php.
calculateTaxRowBasedDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 1295 of file TaxCalculationTest.php.
calculateTaxTaxInclDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 985 of file TaxCalculationTest.php.
calculateTaxTotalBasedDataProvider | ( | ) |
Definition at line 830 of file TaxCalculationTest.php.
calculateUnitBasedDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 117 of file TaxCalculationTest.php.
|
protected |
Create the base results for the multi rules test
Definition at line 2200 of file TaxCalculationTest.php.
multiRulesRowBasedDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 2396 of file TaxCalculationTest.php.
multiRulesTotalBasedDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 2433 of file TaxCalculationTest.php.
multiRulesUnitBasedDataProvider | ( | ) |
@SuppressWarnings(PHPMD.ExcessiveMethodLength)
Definition at line 2480 of file TaxCalculationTest.php.
|
protected |
Definition at line 78 of file TaxCalculationTest.php.
|
protected |
Create quote details for use with multi rules tests
Definition at line 2159 of file TaxCalculationTest.php.
|
protected |
Definition at line 91 of file TaxCalculationTest.php.
testCalculateTaxRowBased | ( | $quoteDetailsData, | |
$expectedTaxDetails | |||
) |
@magentoDbIsolation enabled @dataProvider calculateTaxRowBasedDataProvider @magentoConfigFixture default_store tax/calculation/algorithm ROW_BASE_CALCULATION
Definition at line 1277 of file TaxCalculationTest.php.
testCalculateTaxTotalBased | ( | $quoteDetailsData, | |
$expectedTaxDetails, | |||
$storeId = null |
|||
) |
@dataProvider calculateTaxTotalBasedDataProvider @magentoConfigFixture current_store tax/calculation/algorithm TOTAL_BASE_CALCULATION
Definition at line 815 of file TaxCalculationTest.php.
testCalculateTaxUnitBased | ( | $quoteDetailsData, | |
$expected | |||
) |
@magentoConfigFixture current_store tax/calculation/algorithm UNIT_BASE_CALCULATION @dataProvider calculateUnitBasedDataProvider
Definition at line 100 of file TaxCalculationTest.php.
testMultiRulesRowBased | ( | $quoteDetailsData, | |
$expectedTaxDetails | |||
) |
@magentoDbIsolation enabled @dataProvider multiRulesRowBasedDataProvider @magentoConfigFixture default_store tax/calculation/algorithm ROW_BASE_CALCULATION
Definition at line 2378 of file TaxCalculationTest.php.
testMultiRulesTotalBased | ( | $quoteDetailsData, | |
$expectedTaxDetails | |||
) |
@magentoDbIsolation enabled @dataProvider multiRulesTotalBasedDataProvider @magentoConfigFixture default_store tax/calculation/algorithm TOTAL_BASE_CALCULATION
Definition at line 2415 of file TaxCalculationTest.php.
testMultiRulesUnitBased | ( | $quoteDetailsData, | |
$expectedTaxDetails | |||
) |
@magentoDbIsolation enabled @dataProvider multiRulesUnitBasedDataProvider @magentoConfigFixture default_store tax/calculation/algorithm UNIT_BASE_CALCULATION
Definition at line 2462 of file TaxCalculationTest.php.