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)
200200 ->willReturnSelf ();
201201
202202 $ this ->eventManagerMock ->expects ($ this ->once ())
203- ->method ('dispatch ' );
203+ ->method ('dispatch ' )
204+ ->with ('checkout_success ' , $ this ->arrayHasKey ('order ' ));
204205
205206 $ result = $ this ->returnUrl ->execute ();
206207 $ this ->assertNull ($ result );
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ private function createCaseForOrder($order)
8383 $ orderId = $ order ->getEntityId ();
8484 if (null === $ orderId
8585 || $ order ->getPayment ()->getMethodInstance ()->isOffline ()
86- || $ order ->getState () == Order::STATE_PENDING_PAYMENT ) {
86+ || $ order ->getState () === Order::STATE_PENDING_PAYMENT ) {
8787 return ;
8888 }
8989
You can’t perform that action at this time.
0 commit comments