12 SetupUtil::CONFIG_OVERRIDES => [
13 Config::CONFIG_XML_PATH_APPLY_AFTER_DISCOUNT => 0,
14 Config::CONFIG_XML_PATH_SHIPPING_TAX_CLASS => SetupUtil::PRODUCT_TAX_CLASS_1,
16 SetupUtil::TAX_RATE_OVERRIDES => [
17 SetupUtil::TAX_RATE_TX => 20,
19 SetupUtil::TAX_RULE_OVERRIDES => [
23 'billing_address' => [
24 'region_id' => SetupUtil::REGION_TX,
26 'shipping_address' => [
27 'region_id' => SetupUtil::REGION_TX,
36 'shipping_method' =>
'flatrate_flatrate',
37 'shopping_cart_rules' => [
39 'discount_amount' => 50,
43 'expected_results' => [
46 'base_subtotal' => 20,
47 'subtotal_incl_tax' => 24,
48 'base_subtotal_incl_tax' => 24,
50 'base_tax_amount' => 6,
51 'shipping_amount' => 10,
52 'base_shipping_amount' => 10,
53 'shipping_incl_tax' => 12,
54 'base_shipping_incl_tax' => 12,
55 'shipping_tax_amount' => 2,
56 'base_shipping_tax_amount' => 2,
57 'discount_amount' => -10,
58 'base_discount_amount' => -10,
59 'discount_tax_compensation_amount' => 0,
60 'base_discount_tax_compensation_amount' => 0,
61 'shipping_discount_tax_compensation_amount' => 0,
62 'base_shipping_discount_tax_compensation_amount' => 0,
64 'base_grand_total' => 26,
69 'base_row_total' => 20,
73 'price_incl_tax' => 12,
74 'base_price_incl_tax' => 12,
75 'row_total_incl_tax' => 24,
76 'base_row_total_incl_tax' => 24,
78 'base_tax_amount' => 4,
79 'discount_amount' => 10,
80 'base_discount_amount' => 10,
81 'discount_percent' => 50,
82 'discount_tax_compensation_amount' => 0,
83 'base_discount_tax_compensation_amount' => 0,
$taxCalculationData['excluding_tax_apply_tax_before_discount']