26 private $extensionFactoryMock;
31 private $registryMock;
36 private $attributeValueFactoryMock;
40 $this->contextMock = $this->getMockBuilder(\
Magento\Framework\Model\Context::class)
41 ->disableOriginalConstructor()
44 $this->extensionFactoryMock = $this->getMockBuilder(\
Magento\Framework\Api\ExtensionAttributesFactory::class)
45 ->disableOriginalConstructor()
47 $this->registryMock = $this->getMockBuilder(\
Magento\Framework\Registry::class)
48 ->disableOriginalConstructor()
51 $this->attributeValueFactoryMock = $this->getMockBuilder(\
Magento\Framework\Api\AttributeValueFactory::class)
52 ->disableOriginalConstructor()
58 $this->extensionFactoryMock,
59 $this->attributeValueFactoryMock
65 $maxRegularPriceValue = 123;
67 $this->priceInfo->setMaxRegularPrice($maxRegularPriceValue);
69 $this->assertEquals($this->priceInfo->getMaxRegularPrice(), $maxRegularPriceValue);
74 $maxRegularPriceValue = 123;
76 $this->priceInfo->setMaxPrice($maxRegularPriceValue);
78 $this->assertEquals($this->priceInfo->getMaxRegularPrice(), $maxRegularPriceValue);
83 $minRegularPriceValue = 13;
85 $this->priceInfo->setMinimalRegularPrice($minRegularPriceValue);
87 $this->assertEquals($this->priceInfo->getMinimalRegularPrice(), $minRegularPriceValue);
94 $this->priceInfo->setMinimalPrice($minPriceValue);
96 $this->assertEquals($this->priceInfo->getMinimalRegularPrice(), $minPriceValue);
testEmptyMaxRegularPrice()
testEmptyMinRegularPrice()