Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
AdjustmentTest Class Reference
Inheritance diagram for AdjustmentTest:

Public Member Functions

 testIsIncludedInBasePricePriceIncludeTacEnabled ($isShippingPriceExcludeTax, $expectedResult)
 
 testIsIncludedInBasePricePriceIncludeTacDisabled ($isShippingPriceExcludeTax, $expectedResult)
 
 isIncludedInBasePricePriceIncludeTaxEnabledDataProvider ()
 
 isIncludedInBasePricePriceIncludeTaxDisabledDataProvider ()
 
 testIsIncludedInDisplayPriceExcludingTax ()
 
 testIsIncludedInDisplayPriceIncludingTax ()
 
 testIsIncludedInDisplayPriceBoth ()
 
 testIsIncludedInDisplayPriceWrongValue ()
 

Detailed Description

Definition at line 9 of file AdjustmentTest.php.

Member Function Documentation

◆ isIncludedInBasePricePriceIncludeTaxDisabledDataProvider()

isIncludedInBasePricePriceIncludeTaxDisabledDataProvider ( )
Returns
array

Definition at line 66 of file AdjustmentTest.php.

67  {
68  return [
69  [0, false],
70  [1, true],
71  ];
72  }

◆ isIncludedInBasePricePriceIncludeTaxEnabledDataProvider()

isIncludedInBasePricePriceIncludeTaxEnabledDataProvider ( )
Returns
array

Definition at line 55 of file AdjustmentTest.php.

56  {
57  return [
58  [0, true],
59  [1, true],
60  ];
61  }

◆ testIsIncludedInBasePricePriceIncludeTacDisabled()

testIsIncludedInBasePricePriceIncludeTacDisabled (   $isShippingPriceExcludeTax,
  $expectedResult 
)
Parameters
bool$isShippingPriceExcludeTax
bool$expectedResult@magentoConfigFixture current_store tax/calculation/price_includes_tax 0 @dataProvider isIncludedInBasePricePriceIncludeTaxDisabledDataProvider

Definition at line 47 of file AdjustmentTest.php.

48  {
49  $this->isIncludedInBasePricePrice($isShippingPriceExcludeTax, $expectedResult);
50  }

◆ testIsIncludedInBasePricePriceIncludeTacEnabled()

testIsIncludedInBasePricePriceIncludeTacEnabled (   $isShippingPriceExcludeTax,
  $expectedResult 
)
Parameters
bool$isShippingPriceExcludeTax
bool$expectedResult@magentoConfigFixture current_store tax/calculation/price_includes_tax 1 @dataProvider isIncludedInBasePricePriceIncludeTaxEnabledDataProvider

Definition at line 36 of file AdjustmentTest.php.

37  {
38  $this->isIncludedInBasePricePrice($isShippingPriceExcludeTax, $expectedResult);
39  }

◆ testIsIncludedInDisplayPriceBoth()

testIsIncludedInDisplayPriceBoth ( )

@magentoAppIsolation enabled @magentoConfigFixture current_store tax/display/type 3

Definition at line 114 of file AdjustmentTest.php.

115  {
116  $this->isIncludedInDisplayPrice(true);
117  }

◆ testIsIncludedInDisplayPriceExcludingTax()

testIsIncludedInDisplayPriceExcludingTax ( )

@magentoAppIsolation enabled @magentoConfigFixture current_store tax/display/type 1

Definition at line 96 of file AdjustmentTest.php.

97  {
98  $this->isIncludedInDisplayPrice(false);
99  }

◆ testIsIncludedInDisplayPriceIncludingTax()

testIsIncludedInDisplayPriceIncludingTax ( )

@magentoAppIsolation enabled @magentoConfigFixture current_store tax/display/type 2

Definition at line 105 of file AdjustmentTest.php.

106  {
107  $this->isIncludedInDisplayPrice(true);
108  }

◆ testIsIncludedInDisplayPriceWrongValue()

testIsIncludedInDisplayPriceWrongValue ( )

@magentoAppIsolation enabled @magentoConfigFixture current_store tax/display/type 100500

Definition at line 123 of file AdjustmentTest.php.

124  {
125  $this->isIncludedInDisplayPrice(false);
126  }

The documentation for this class was generated from the following file: