/** * @param array $data * @return array */ public function addSpecialDataToOrder(array $data = []) { return array_merge($data, ['continueUrl' => $this->dataGetter->getContinueUrl(), 'notifyUrl' => $this->dataGetter->getNotifyUrl(), 'customerIp' => $this->dataGetter->getCustomerIp(), 'merchantPosId' => $this->dataGetter->getMerchantPosId()]); }
public function testMerchantPosId() { $merchantPosId = '123456'; $this->configHelper->expects($this->once())->method('getConfig')->with($this->equalTo('merchant_pos_id'))->willReturn($merchantPosId); $this->assertEquals($merchantPosId, $this->model->getMerchantPosId()); }