Skip to content

Commit 9a72e57

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-47123' into MPI-BUGFIXES
2 parents 48ecb3b + c880f42 commit 9a72e57

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ public function registerRefundNotification($amount)
759759
true
760760
)->setAutomaticallyCreated(
761761
true
762-
)->register()->addComment(
762+
)->addComment(
763763
__('The credit memo has been created automatically.')
764764
);
765765
$creditmemo->save();

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
2020
const TRANSACTION_ID = 'ewr34fM49V0';
2121

2222
private $mockContext;
23+
2324
/**
2425
* @var Payment
2526
*/
@@ -858,7 +859,6 @@ public function testUpdateOnlineTransactionApproved()
858859
$this->mockInvoice($this->transactionId);
859860
$this->mockResultTrueMethods($this->transactionId, $baseGrandTotal, $message);
860861

861-
862862
$this->orderMock->expects($this->once())
863863
->method('getStoreId')
864864
->willReturn($storeId);
@@ -1339,7 +1339,6 @@ public function testRegisterRefundNotification()
13391339
->willReturn($this->creditMemoMock);
13401340
$this->creditMemoMock->expects($this->once())->method('setPaymentRefundDisallowed')->willReturnSelf();
13411341
$this->creditMemoMock->expects($this->once())->method('setAutomaticallyCreated')->willReturnSelf();
1342-
$this->creditMemoMock->expects($this->once())->method('register')->willReturnSelf();
13431342
$this->creditMemoMock->expects($this->once())->method('addComment')->willReturnSelf();
13441343
$this->creditMemoMock->expects($this->once())->method('save')->willReturnSelf();
13451344
$this->orderMock->expects($this->once())->method('getBaseCurrency')->willReturn($this->currencyMock);

0 commit comments

Comments
 (0)