Skip to content

Commit 6c8cb00

Browse files
author
rliukshyn
committed
MAGETWO-32743: Direct web link on Magento order transactions to backend records
- fix PaymentTest
1 parent 91fb996 commit 6c8cb00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ public function testRegisterRefundNotification()
11531153
'setTxnType',
11541154
'isFailsafe',
11551155
'getTxnId',
1156+
'getHtmlTxnId',
11561157
'getTxnType'
11571158
],
11581159
[],
@@ -1193,6 +1194,9 @@ public function testRegisterRefundNotification()
11931194
$newTransaction->expects($this->once())->method('setTxnId')->with(
11941195
$this->transactionId . '-' . \Magento\Sales\Model\Order\Payment\Transaction::TYPE_REFUND
11951196
)->willReturn($newTransaction);
1197+
$newTransaction->expects($this->atLeastOnce())->method('getHtmlTxnId')->willReturn(
1198+
$this->transactionId . '-' . \Magento\Sales\Model\Order\Payment\Transaction::TYPE_REFUND
1199+
);
11961200
$newTransaction->expects($this->atLeastOnce())->method('getTxnId')->willReturn(
11971201
$this->transactionId . '-' . \Magento\Sales\Model\Order\Payment\Transaction::TYPE_REFUND
11981202
);

0 commit comments

Comments
 (0)