File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
app/code/Magento/Sales/Test/Unit/Model/Order/Creditmemo/Total Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -509,9 +509,10 @@ public function testCollectRefundShippingAmountIncTax()
509
509
/**
510
510
* situation: The admin user specified the desired refund amount that has taxes and discount embedded within it
511
511
*
512
+ * @dataProvider calculationSequenceDataProvider
512
513
* @throws LocalizedException
513
514
*/
514
- public function testCollectUsingShippingInclTaxAndDiscountOnExclBeforeTax ( )
515
+ public function testCollectUsingShippingInclTaxAndDiscountBeforeTax ( string $ calculationSequence )
515
516
{
516
517
$ this ->taxConfig ->expects ($ this ->any ())->method ('displaySalesShippingInclTax ' )->willReturn (true );
517
518
$ this ->taxConfig ->expects ($ this ->any ())
@@ -603,4 +604,15 @@ public function testCollectUsingShippingInclTaxAndDiscountOnExclBeforeTax()
603
604
->willReturnSelf ();
604
605
$ this ->shippingCollector ->collect ($ this ->creditmemoMock );
605
606
}
607
+
608
+ /**
609
+ * @return array
610
+ */
611
+ public function calculationSequenceDataProvider (): array
612
+ {
613
+ return [
614
+ 'inclTax ' => [TaxCalculation::CALC_TAX_AFTER_DISCOUNT_ON_INCL ],
615
+ 'exclTax ' => [TaxCalculation::CALC_TAX_AFTER_DISCOUNT_ON_EXCL ],
616
+ ];
617
+ }
606
618
}
You can’t perform that action at this time.
0 commit comments