Beispiel #1
0
 public function testSetConfigSignatureKeyEmpty()
 {
     $this->_scopeConfig->expects($this->at(0))->method('getValue')->with($this->equalTo(Payupl::XML_PATH_POS_ID), $this->equalTo('store'))->willReturn(self::EXEMPLARY_MERCHANT_POS_ID);
     $this->_scopeConfig->expects($this->at(1))->method('getValue')->with($this->equalTo(Payupl::XML_PATH_SECOND_KEY_MD5), $this->equalTo('store'))->willReturn('');
     $this->setExpectedException(LocalizedException::class, 'Signature key is empty.');
     $this->model->setConfig();
 }
 /**
  * @return string
  */
 public function getMerchantPosId()
 {
     return $this->configHelper->getConfig('merchant_pos_id');
 }