public function testGetBuildNotationCode() { $productMetadata = $this->getMock(ProductMetadataInterface::class, [], [], '', false); $productMetadata->expects($this->once())->method('getEdition')->will($this->returnValue('SomeEdition')); $objectManagerHelper = new ObjectManagerHelper($this); $objectManagerHelper->setBackwardCompatibleProperty($this->config, 'productMetadata', $productMetadata); $this->assertEquals('Magento_Cart_SomeEdition', $this->config->getBuildNotationCode()); }
public function testGetBuildNotationCode() { $this->scopeConfigMock->expects($this->once())->method('getValue')->with('paypal/bncode'); $this->config->getBuildNotationCode(); }