Exemple #1
0
 public function testGetCarrierConfigValue()
 {
     $carrierCode = 'carrier1';
     $configPath = 'title';
     $configValue = 'some title';
     $this->scopeConfig->expects($this->once())->method('getValue')->with(sprintf('carriers/%s/%s', $carrierCode, $configPath), \Magento\Store\Model\ScopeInterface::SCOPE_STORE)->will($this->returnValue($configValue));
     $this->assertEquals($configValue, $this->helper->getCarrierConfigValue($carrierCode, $configPath));
 }