23 $this->product = $this->createPartialMock(
24 \
Magento\Catalog\Model\Product::class,
25 [
'__wakeup',
'getCanShowPrice']
28 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
30 \
Magento\Catalog\Model\
Product\Pricing\Renderer\SalableResolver::class
36 $this->product->expects($this->any())
37 ->method(
'getCanShowPrice')
40 $result = $this->
object->isSalable($this->product);
46 $this->product->expects($this->any())
47 ->method(
'getCanShowPrice')
50 $result = $this->
object->isSalable($this->product);