File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ public function registerRefundNotification($amount)
759
759
true
760
760
)->setAutomaticallyCreated (
761
761
true
762
- )->register ()-> addComment (
762
+ )->addComment (
763
763
__ ('The credit memo has been created automatically. ' )
764
764
);
765
765
$ creditmemo ->save ();
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
20
20
const TRANSACTION_ID = 'ewr34fM49V0 ' ;
21
21
22
22
private $ mockContext ;
23
+
23
24
/**
24
25
* @var Payment
25
26
*/
@@ -858,7 +859,6 @@ public function testUpdateOnlineTransactionApproved()
858
859
$ this ->mockInvoice ($ this ->transactionId );
859
860
$ this ->mockResultTrueMethods ($ this ->transactionId , $ baseGrandTotal , $ message );
860
861
861
-
862
862
$ this ->orderMock ->expects ($ this ->once ())
863
863
->method ('getStoreId ' )
864
864
->willReturn ($ storeId );
@@ -1339,7 +1339,6 @@ public function testRegisterRefundNotification()
1339
1339
->willReturn ($ this ->creditMemoMock );
1340
1340
$ this ->creditMemoMock ->expects ($ this ->once ())->method ('setPaymentRefundDisallowed ' )->willReturnSelf ();
1341
1341
$ this ->creditMemoMock ->expects ($ this ->once ())->method ('setAutomaticallyCreated ' )->willReturnSelf ();
1342
- $ this ->creditMemoMock ->expects ($ this ->once ())->method ('register ' )->willReturnSelf ();
1343
1342
$ this ->creditMemoMock ->expects ($ this ->once ())->method ('addComment ' )->willReturnSelf ();
1344
1343
$ this ->creditMemoMock ->expects ($ this ->once ())->method ('save ' )->willReturnSelf ();
1345
1344
$ this ->orderMock ->expects ($ this ->once ())->method ('getBaseCurrency ' )->willReturn ($ this ->currencyMock );
You can’t perform that action at this time.
0 commit comments