Skip to content

Commit 633f073

Browse files
MC-32546: Website Payments Pro Hosted Solution redirect to home page
1 parent 76f9542 commit 633f073

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Paypal/Test/Unit/Model/IpnTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ protected function setUp()
5353
'getEmailSent',
5454
'save',
5555
'getState',
56+
'setState',
5657
];
5758
$this->_orderMock = $this->createPartialMock(\Magento\Sales\Model\OrderFactory::class, $methods);
5859
$this->_orderMock->expects($this->any())->method('create')->will($this->returnSelf());
@@ -149,9 +150,12 @@ public function testPaymentReviewRegisterPaymentFraud()
149150
->will($this->returnValue(true));
150151
$this->_orderMock->expects($this->any())->method('getPayment')->will($this->returnValue($paymentMock));
151152
$this->_orderMock->expects($this->any())->method('canFetchPaymentReviewUpdate')->will($this->returnValue(true));
152-
$this->_orderMock->expects($this->once())->method('getState')->will(
153+
$this->_orderMock->expects($this->any())->method('getState')->will(
153154
$this->returnValue(Order::STATE_PENDING_PAYMENT)
154155
);
156+
$this->_orderMock->expects($this->once())
157+
->method('setState')
158+
->with(Order::STATE_PROCESSING);
155159
$this->_paypalInfo->expects($this->once())
156160
->method('importToPayment')
157161
->with(

0 commit comments

Comments
 (0)