File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Paypal/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ protected function setUp()
53
53
'getEmailSent ' ,
54
54
'save ' ,
55
55
'getState ' ,
56
+ 'setState ' ,
56
57
];
57
58
$ this ->_orderMock = $ this ->createPartialMock (\Magento \Sales \Model \OrderFactory::class, $ methods );
58
59
$ this ->_orderMock ->expects ($ this ->any ())->method ('create ' )->will ($ this ->returnSelf ());
@@ -149,9 +150,12 @@ public function testPaymentReviewRegisterPaymentFraud()
149
150
->will ($ this ->returnValue (true ));
150
151
$ this ->_orderMock ->expects ($ this ->any ())->method ('getPayment ' )->will ($ this ->returnValue ($ paymentMock ));
151
152
$ 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 (
153
154
$ this ->returnValue (Order::STATE_PENDING_PAYMENT )
154
155
);
156
+ $ this ->_orderMock ->expects ($ this ->once ())
157
+ ->method ('setState ' )
158
+ ->with (Order::STATE_PROCESSING );
155
159
$ this ->_paypalInfo ->expects ($ this ->once ())
156
160
->method ('importToPayment ' )
157
161
->with (
You can’t perform that action at this time.
0 commit comments