Skip to content

Commit bd16533

Browse files
author
Volodymyr Kublytskyi
committed
Fixture correction to have correctly loaded invoice for creditmemo
1 parent c0cc6e1 commit bd16533

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/integration/testsuite/Magento/Sales/_files/order_info.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
$invoice = $invoiceFactory->prepareInvoice($order, [$item->getId() => 10]);
8686
$invoice->register();
8787
$invoice->save();
88+
$order->save();
89+
90+
$invoice = $objectManager->get(\Magento\Sales\Api\InvoiceRepositoryInterface::class)->get($invoice->getId());
8891

8992
/** @var \Magento\Sales\Model\Order\CreditmemoFactory $creditmemoFactory */
9093
$creditmemoFactory = $objectManager->get(\Magento\Sales\Model\Order\CreditmemoFactory::class);

0 commit comments

Comments
 (0)