/**
* @package checkout
*
* @internal
*
* @covers \Shopware\Core\Checkout\Cart\TaxProvider\TaxAdjustmentCalculator
*/
class TaxAdjustmentCalculatorTest extends TestCase
{ public function testCalculateGrossTaxesActuallyCalculatesNetTaxes(): void
{ $calculator =
new TaxAdjustmentCalculator();
$taxes =
$calculator->
calculateGrossTaxes(100,
new TaxRuleCollection([ new TaxRule(20, 50
),
new TaxRule(10, 50
),
]));
$taxes =
$taxes->
getElements();
static::
assertCount(2,
$taxes);
static::
assertArrayHasKey(20,
$taxes);
static::
assertArrayHasKey(10,
$taxes);