File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Model/Order/Creditmemo/Total
Test/Unit/Model/Order/Creditmemo/Total Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ private function getTaxConfig()
146
146
/**
147
147
* Get base allowed amount including Tax.
148
148
*
149
+ * @param float $baseAllowedAmountInclTaxDiff
149
150
* @return float
150
- *
151
151
*/
152
- private function getBaseAllowedAmountInclTax ($ baseAllowedAmountInclTaxDiff )
152
+ private function getBaseAllowedAmountInclTax (float $ baseAllowedAmountInclTaxDiff )
153
153
{
154
154
return ($ baseAllowedAmountInclTaxDiff > 0 ) ? $ baseAllowedAmountInclTaxDiff : 0 ;
155
155
}
Original file line number Diff line number Diff line change @@ -486,7 +486,10 @@ public function testCollectRefundShippingAmountIncTax()
486
486
->method ('setBaseGrandTotal ' )
487
487
->with ($ expectedBaseGrandTotal )
488
488
->willReturnSelf ();
489
- $ this ->assertEquals (0 , $ this ->shippingCollector ->getBaseAllowedAmountInclTax ($ expectedBaseShippingAmountInclTax ));
489
+ $ this ->assertEquals (
490
+ 0 ,
491
+ $ this ->shippingCollector ->getBaseAllowedAmountInclTax ($ expectedBaseShippingAmountInclTax )
492
+ );
490
493
$ this ->shippingCollector ->collect ($ this ->creditmemoMock );
491
494
}
492
495
}
You can’t perform that action at this time.
0 commit comments