File tree 2 files changed +5
-0
lines changed
app/code/Magento/Sales/Model/AdminOrder
dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1907,6 +1907,7 @@ public function createOrder()
1907
1907
$ oldOrder = $ this ->getSession ()->getOrder ();
1908
1908
$ oldOrder ->setRelationChildId ($ order ->getId ());
1909
1909
$ oldOrder ->setRelationChildRealId ($ order ->getIncrementId ());
1910
+ $ oldOrder ->save ();
1910
1911
$ this ->orderManagement ->cancel ($ oldOrder ->getEntityId ());
1911
1912
$ order ->save ();
1912
1913
}
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ public function testInitFromOrderAndCreateOrderFromQuoteWithAdditionalOptions()
104
104
105
105
$ this ->assertEquals (1 , $ newOrderItems ->count ());
106
106
107
+ $ order ->loadByIncrementId ('100000001 ' );
108
+ $ this ->assertEquals ($ newOrder ->getRealOrderId (), $ order ->getRelationChildRealId ());
109
+ $ this ->assertEquals ($ newOrder ->getId (), $ order ->getRelationChildId ());
110
+
107
111
$ newOrderItem = $ newOrderItems ->getFirstItem ();
108
112
109
113
$ this ->assertEquals (
You can’t perform that action at this time.
0 commit comments