Skip to content

Commit 23f315c

Browse files
author
Anton Evers
committed
Fix IpnTest
In the IpnTest creates a creditmemo for the invoice in $ipnModel->processIpnRequest() already So if Magento/Paypal/_files/order_express_with_invoice_and_creditmemo.php is used, the invoice is already refunded before the start of the test
1 parent ce20c0a commit 23f315c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • dev/tests/integration/testsuite/Magento/Paypal/Model

‎dev/tests/integration/testsuite/Magento/Paypal/Model/IpnTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testProcessIpnRequestPartialRefund()
123123
/**
124124
* Refund rest of order amount by Paypal Express IPN message service.
125125
*
126-
* @magentoDataFixture Magento/Paypal/_files/order_express_with_invoice_and_creditmemo.php
126+
* @magentoDataFixture Magento/Paypal/_files/order_express_with_invoice_and_shipping.php
127127
* @magentoConfigFixture current_store payment/paypal_express/active 1
128128
* @magentoConfigFixture current_store paypal/general/merchant_country US
129129
*/
@@ -147,7 +147,7 @@ public function testProcessIpnRequestRestRefund()
147147
$creditmemoItems = $order->getCreditmemosCollection()->getItems();
148148

149149
$this->assertEquals(Order::STATE_CLOSED, $order->getState()) ;
150-
$this->assertEquals(2, count($creditmemoItems));
150+
$this->assertEquals(1, count($creditmemoItems));
151151
$this->assertEquals(10, $order->getSubtotalRefunded());
152152
$this->assertEquals(10, $order->getBaseSubtotalRefunded());
153153
$this->assertEquals(20, $order->getShippingRefunded());

0 commit comments

Comments
 (0)