/** * @inheritDoc */ public function addSpecialDataToOrder(array $data = []) { $data['pos_id'] = $this->dataGetter->getPosId(); $data['pos_auth_key'] = $this->dataGetter->getPosAuthKey(); $data['client_ip'] = $this->dataGetter->getClientIp(); $data['ts'] = $this->dataGetter->getTs(); $data['sig'] = $this->dataGetter->getSigForOrderCreate($data); return $data; }
public function testPosAuthKey() { $posAuthKey = 'ABC'; $this->configHelper->expects($this->once())->method('getConfig')->with($this->equalTo('pos_auth_key'))->willReturn($posAuthKey); $this->assertEquals($posAuthKey, $this->model->getPosAuthKey()); }