Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 7e0b689

Browse files
committed
MAGETWO-71771: imposible perform full refund for Order Paid with PayPal Payments Standard
- Reuse test fixture for integration test
1 parent 7b119d5 commit 7e0b689

File tree

3 files changed

+22
-94
lines changed

3 files changed

+22
-94
lines changed

dev/tests/integration/testsuite/Magento/Paypal/Model/Api/NvpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function testRequestTotalsAndLineItemsWithFPT()
121121
/**
122122
* Test that the refund request to Paypal sends the correct data
123123
*
124-
* @magentoDataFixture Magento/Paypal/_files/order_standard_with_tax_and_invoice.php
124+
* @magentoDataFixture Magento/Paypal/_files/order_express_with_tax.php
125125
*/
126126
public function testCallRefundTransaction()
127127
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
require __DIR__ . '/order_express.php';
8+
9+
$subTotal = 121;
10+
$taxRate = .0825;
11+
$taxAmount = $subTotal * $taxRate;
12+
$shippingAmount = 15;
13+
$totalAmount = $subTotal + $taxAmount + $shippingAmount;
14+
15+
$order->setSubtotal($subTotal);
16+
$order->setBaseSubtotal($subTotal);
17+
$order->setGrandTotal($totalAmount);
18+
$order->setBaseGrandTotal($totalAmount);
19+
$order->setTaxAmount($taxAmount);
20+
21+
$order->save();

dev/tests/integration/testsuite/Magento/Paypal/_files/order_standard_with_tax_and_invoice.php

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)