File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/Paypal/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,11 @@ public function testProcessIpnRequestThrowsException()
172172 ->getMock ();
173173 $ orderMutexMock = $ this ->getMockForAbstractClass (orderMutexInterface::class);
174174 $ loggerMock = $ this ->getMockForAbstractClass (LoggerInterface::class);
175+ $ data = [
176+ 'payment_status ' => 'Pending ' ,
177+ 'pending_reason ' => 'fraud ' ,
178+ 'fraud_management_pending_filters_1 ' => 'Maximum Transaction Amount ' ,
179+ ];
175180 $ this ->_ipn = new Ipn (
176181 $ this ->configFactory ,
177182 $ loggerMock ,
@@ -181,11 +186,7 @@ public function testProcessIpnRequestThrowsException()
181186 $ orderSenderMock ,
182187 $ creditmemoSenderMock ,
183188 $ orderMutexMock ,
184- [
185- 'payment_status ' => 'Pending ' ,
186- 'pending_reason ' => 'fraud ' ,
187- 'fraud_management_pending_filters_1 ' => 'Maximum Transaction Amount ' ,
188- ]
189+ $ data
189190 );
190191 $ this ->expectException (UnknownIpnException::class);
191192 $ this ->_ipn ->processIpnRequest ();
You can’t perform that action at this time.
0 commit comments