Exemple #1
0
 public function testSetConfigSuccess()
 {
     $merchantPosId = self::EXEMPLARY_MERCHANT_POS_ID;
     $signatureKey = self::EXEMPLARY_SIGNATURE_KEY;
     $this->_scopeConfig->expects($this->at(0))->method('getValue')->with($this->equalTo(Payupl::XML_PATH_POS_ID), $this->equalTo('store'))->willReturn($merchantPosId);
     $this->_scopeConfig->expects($this->at(1))->method('getValue')->with($this->equalTo(Payupl::XML_PATH_SECOND_KEY_MD5), $this->equalTo('store'))->willReturn($signatureKey);
     $this->assertTrue($this->model->setConfig());
     $this->assertEquals($this->model->getConfig(), ['merchant_pos_id' => $merchantPosId, 'signature_key' => $signatureKey]);
 }
 /**
  * @return string
  */
 public function getMerchantPosId()
 {
     return $this->configHelper->getConfig('merchant_pos_id');
 }