Skip to content

Commit 55da284

Browse files
committed
MAGETWO-65246: [Backport] - [Performance] Product special price calculation/rendering on Category page - for 2.1.6
1 parent 41f2763 commit 55da284

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Pricing/Render/FinalPriceBoxTest.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class FinalPriceBoxTest extends \PHPUnit_Framework_TestCase
6666
*/
6767
private $salableResolverMock;
6868

69-
/** @var ObjectManager */
69+
/** @var ObjectManager */
7070
private $objectManager;
7171

7272
/** @var Manager|\PHPUnit_Framework_MockObject_MockObject */
@@ -84,7 +84,18 @@ protected function setUp()
8484
'',
8585
false
8686
);
87-
$this->priceInfo = $this->getMock(\Magento\Framework\Pricing\PriceInfoInterface::class, ['getPrice', 'getPrices', 'getAdjustments', 'getAdjustment'], [], '', false);
87+
$this->priceInfo = $this->getMock(
88+
\Magento\Framework\Pricing\PriceInfoInterface::class,
89+
[
90+
'getPrice',
91+
'getPrices',
92+
'getAdjustments',
93+
'getAdjustment'
94+
],
95+
[],
96+
'',
97+
false
98+
);
8899
$this->product->expects($this->any())
89100
->method('getPriceInfo')
90101
->will($this->returnValue($this->priceInfo));

0 commit comments

Comments
 (0)