Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
TaxAdjustment example
class
TaxProviderProcessorTest
extends
TestCase
{
private
IdsCollection
$ids
;
private
TaxAdjustment
$adjustment
;
protected
function
setUp
(
)
: void
{
$this
->ids =
new
IdsCollection
(
)
;
$this
->adjustment =
new
TaxAdjustment
(
new
AmountCalculator
(
new
CashRounding
(
)
,
new
PercentageTaxRuleBuilder
(
)
,
new
TaxAdjustmentCalculator
(
)
)
,
new
CashRounding
(
)
)
;
}
public
function
testProcess
(
)
: void
{
class
TaxAdjustmentTest
extends
TestCase
{
private
IdsCollection
$ids
;
private
TaxAdjustment
$adjustment
;
protected
function
setUp
(
)
: void
{
$this
->ids =
new
IdsCollection
(
)
;
$this
->adjustment =
new
TaxAdjustment
(
new
AmountCalculator
(
new
CashRounding
(
)
,
new
PercentageTaxRuleBuilder
(
)
,
new
TaxAdjustmentCalculator
(
)
)
,
new
CashRounding
(
)
)
;
}
public
function
testItThrowsOnEmptyLineItemPrice
(
)
: void
{