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

Commit b022fdc

Browse files
committed
MAGETWO-71771: imposible perform full refund for Order Paid with PayPal Payments Standard
- Use repository to save Order model in integration test
1 parent 7e0b689 commit b022fdc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public function testRequestTotalsAndLineItemsWithFPT()
125125
*/
126126
public function testCallRefundTransaction()
127127
{
128-
$this->assertTrue(true);
129128
/** @var \Magento\Sales\Model\Order $order */
130129
$order = $this->objectManager->create(\Magento\Sales\Model\Order::class);
131130
$order->loadByIncrementId('100000001');

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
use Magento\Framework\ObjectManagerInterface;
8+
use Magento\Sales\Model\OrderRepository;
9+
use Magento\TestFramework\Helper\Bootstrap;
10+
711
require __DIR__ . '/order_express.php';
812

13+
/** @var ObjectManagerInterface $objectManager */
14+
$objectManager = Bootstrap::getObjectManager();
15+
916
$subTotal = 121;
1017
$taxRate = .0825;
1118
$taxAmount = $subTotal * $taxRate;
@@ -18,4 +25,6 @@
1825
$order->setBaseGrandTotal($totalAmount);
1926
$order->setTaxAmount($taxAmount);
2027

21-
$order->save();
28+
/** @var OrderRepository $orderRepository */
29+
$orderRepository = $objectManager->get(OrderRepository::class);
30+
$orderRepository->save($order);

0 commit comments

Comments
 (0)