Skip to content

Commit b7f40b7

Browse files
author
Joan He
committed
MC-5570: Different Order Status of two created credit memo orders
1 parent c9b0d6a commit b7f40b7

File tree

1 file changed

+4
-6
lines changed
  • app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Order/Handler

1 file changed

+4
-6
lines changed

app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Order/Handler/StateTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ protected function setUp()
3737
'canShip',
3838
'getBaseGrandTotal',
3939
'canCreditmemo',
40-
// 'getState',
41-
// 'setState',
4240
'getTotalRefunded',
4341
'hasForcedCanCreditmemo',
4442
'getIsInProcess',
@@ -131,13 +129,13 @@ public function stateCheckDataProvider()
131129
'new - canCreditmemo, canShip, !IsInProcess -> new' =>
132130
[true, 0, true, 0, Order::STATE_NEW, Order::STATE_NEW, false, 1],
133131
'hold - canUnhold -> hold' =>
134-
[true, 0, true, 0, Order::STATE_HOLDED, Order::STATE_HOLDED, false, 0, false, true, false],
132+
[true, 0, true, 0, Order::STATE_HOLDED, Order::STATE_HOLDED, false, 0, false, true],
135133
'payment_review - canUnhold -> payment_review' =>
136-
[true, 0, true, 0, Order::STATE_PAYMENT_REVIEW, Order::STATE_PAYMENT_REVIEW, false, 0, false, false, false],
134+
[true, 0, true, 0, Order::STATE_PAYMENT_REVIEW, Order::STATE_PAYMENT_REVIEW, false, 0, false, true],
137135
'pending_payment - canUnhold -> pending_payment' =>
138-
[true, 0, true, 0, Order::STATE_PENDING_PAYMENT, Order::STATE_PENDING_PAYMENT, false, 0, false, false, false],
136+
[true, 0, true, 0, Order::STATE_PENDING_PAYMENT, Order::STATE_PENDING_PAYMENT, false, 0, false, true],
139137
'cancelled - isCanceled -> cancelled' =>
140-
[true, 0, true, 0, Order::STATE_HOLDED, Order::STATE_HOLDED, false, 0, true, false, false],
138+
[true, 0, true, 0, Order::STATE_HOLDED, Order::STATE_HOLDED, false, 0, true],
141139
];
142140
}
143141
}

0 commit comments

Comments
 (0)