Skip to content

Commit d05b818

Browse files
MC-36953: [Magento On-Premise]: Tracking link in email redirects to 404 Page not Found
1 parent bd087ec commit d05b818

File tree

1 file changed

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

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ public function testAclNoAccess()
7474
parent::testAclNoAccess();
7575
}
7676

77+
/**
78+
* Checks that order protect code is not changing after invoice submitting
79+
*
80+
* @return void
81+
*/
82+
public function testOrderProtectCodePreserveAfterInvoiceSave(): void
83+
{
84+
$order = $this->prepareRequest();
85+
$protectCode = $order->getProtectCode();
86+
$this->dispatch($this->uri);
87+
$invoicedOrder = $this->getOrder('100000001');
88+
89+
$this->assertEquals($protectCode, $invoicedOrder->getProtectCode());
90+
}
91+
7792
/**
7893
* @param array $params
7994
* @return \Magento\Sales\Api\Data\OrderInterface|null

0 commit comments

Comments
 (0)