Skip to content

Commit 39cf021

Browse files
committed
ACP2E-4049: Unknown IPNs from PayPal abuses application IPN processor
1 parent 8176146 commit 39cf021

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)