Skip to content

Commit 0c906a1

Browse files
committed
MC-37196: Admin: invoice order for customer
1 parent b235eef commit 0c906a1

File tree

1 file changed

+4
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice

1 file changed

+4
-1
lines changed

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice/SaveTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,14 @@ public function testAclNoAccess()
196196
/**
197197
* Checks that order protect code is not changing after invoice submitting
198198
*
199+
* @magentoDataFixture Magento/Sales/_files/order.php
200+
*
199201
* @return void
200202
*/
201203
public function testOrderProtectCodePreserveAfterInvoiceSave(): void
202204
{
203-
$order = $this->prepareRequest();
205+
$order = $this->getOrder('100000001');
206+
$this->prepareRequest([], ['order_id' => $order->getEntityId()]);
204207
$protectCode = $order->getProtectCode();
205208
$this->dispatch($this->uri);
206209
$invoicedOrder = $this->getOrder('100000001');

0 commit comments

Comments
 (0)