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()
146146 /**
147147 * Get base allowed amount including Tax.
148148 *
149+ * @param float $baseAllowedAmountInclTaxDiff
149150 * @return float
150- *
151151 */
152- private function getBaseAllowedAmountInclTax ($ baseAllowedAmountInclTaxDiff )
152+ private function getBaseAllowedAmountInclTax (float $ baseAllowedAmountInclTaxDiff )
153153 {
154154 return ($ baseAllowedAmountInclTaxDiff > 0 ) ? $ baseAllowedAmountInclTaxDiff : 0 ;
155155 }
Original file line number Diff line number Diff line change @@ -486,7 +486,10 @@ public function testCollectRefundShippingAmountIncTax()
486486 ->method ('setBaseGrandTotal ' )
487487 ->with ($ expectedBaseGrandTotal )
488488 ->willReturnSelf ();
489- $ this ->assertEquals (0 , $ this ->shippingCollector ->getBaseAllowedAmountInclTax ($ expectedBaseShippingAmountInclTax ));
489+ $ this ->assertEquals (
490+ 0 ,
491+ $ this ->shippingCollector ->getBaseAllowedAmountInclTax ($ expectedBaseShippingAmountInclTax )
492+ );
490493 $ this ->shippingCollector ->collect ($ this ->creditmemoMock );
491494 }
492495}
You can’t perform that action at this time.
0 commit comments