Skip to content

Commit 4d435bc

Browse files
author
Yu Tang
committed
MAGETWO-44075: Incorrect prices on product page for products with custom option
- Fix static test failures
1 parent e79686d commit 4d435bc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

app/code/Magento/Tax/Test/Unit/Model/Calculation/RowBaseAndTotalBaseCalculatorTestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ protected function initMockCalculationTool($isTaxIncluded)
244244
);
245245
$this->mockCalculationTool->expects($this->atLeastOnce())
246246
->method('round')
247-
->willReturnCallback(function ($price) {return round($price, 2);});
247+
->willReturnCallback(
248+
function ($price) {
249+
return round($price, 2);
250+
}
251+
);
248252
}
249253

250254
/**

app/code/Magento/Tax/Test/Unit/Model/Calculation/UnitBaseCalculatorTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ public function setUp()
7171
$this->mockCalculationTool->expects($this->any())
7272
->method('round')
7373
->withAnyParameters()
74-
->willReturnCallback(function ($price) {return round($price, 2);});
74+
->willReturnCallback(function ($price) {
75+
return round($price, 2);
76+
}
77+
);
7578
$this->mockConfig = $this->getMockBuilder('\Magento\Tax\Model\Config')
7679
->disableOriginalConstructor()
7780
->getMock();

0 commit comments

Comments
 (0)