Exemplo n.º 1
0
 public function testCanRefundCaptureExistValid()
 {
     $paymentInfo = $this->_getPreparedPaymentInfo();
     $captureTransaction = $this->_getCaptureTransaction();
     $captureTransaction->expects($this->once())->method('getAdditionalInformation')->with(Payflow\Pro::TRANSPORT_PAYFLOW_TXN_ID)->will($this->returnValue(self::TRANSPORT_PAYFLOW_TXN_ID));
     $paymentInfo->expects($this->once())->method('lookupTransaction')->with('', Transaction::TYPE_CAPTURE)->will($this->returnValue($captureTransaction));
     $this->assertTrue($this->_model->canRefund());
 }