File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Paypal/Test/Unit/Controller/Payflow Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ public function testExecuteAllowedOrderState($state)
200
200
->willReturnSelf ();
201
201
202
202
$ this ->eventManagerMock ->expects ($ this ->once ())
203
- ->method ('dispatch ' );
203
+ ->method ('dispatch ' )
204
+ ->with ('checkout_success ' , $ this ->arrayHasKey ('order ' ));
204
205
205
206
$ result = $ this ->returnUrl ->execute ();
206
207
$ this ->assertNull ($ result );
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ private function createCaseForOrder($order)
83
83
$ orderId = $ order ->getEntityId ();
84
84
if (null === $ orderId
85
85
|| $ order ->getPayment ()->getMethodInstance ()->isOffline ()
86
- || $ order ->getState () == Order::STATE_PENDING_PAYMENT ) {
86
+ || $ order ->getState () === Order::STATE_PENDING_PAYMENT ) {
87
87
return ;
88
88
}
89
89
You can’t perform that action at this time.
0 commit comments