Skip to content

Commit df6acb5

Browse files
author
Olexandr Lysenko
committed
MAGETWO-58237: Order status history contains wrong data after creation of a Credit Memo
1 parent 17881e4 commit df6acb5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

app/code/Magento/Sales/Test/Unit/Model/RefundOrderTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,41 +247,33 @@ public function testOrderCreditmemo($orderId, $notify, $appendComment)
247247
->method('getStateForOrder')
248248
->with($this->orderMock, [])
249249
->willReturn(Order::STATE_CLOSED);
250-
251250
$this->orderMock->expects($this->once())
252251
->method('setState')
253252
->with(Order::STATE_CLOSED)
254253
->willReturnSelf();
255-
256254
$this->orderMock->expects($this->once())
257255
->method('getState')
258256
->willReturn(Order::STATE_CLOSED);
259-
260257
$this->configMock->expects($this->once())
261258
->method('getStateDefaultStatus')
262259
->with(Order::STATE_CLOSED)
263260
->willReturn('Closed');
264-
265261
$this->orderMock->expects($this->once())
266262
->method('setStatus')
267263
->with('Closed')
268264
->willReturnSelf();
269-
270265
$this->creditmemoMock->expects($this->once())
271266
->method('setState')
272267
->with(\Magento\Sales\Model\Order\Creditmemo::STATE_REFUNDED)
273268
->willReturnSelf();
274-
275269
$this->creditmemoRepositoryMock->expects($this->once())
276270
->method('save')
277271
->with($this->creditmemoMock)
278272
->willReturn($this->creditmemoMock);
279-
280273
$this->orderRepositoryMock->expects($this->once())
281274
->method('save')
282275
->with($this->orderMock)
283276
->willReturn($this->orderMock);
284-
285277
if ($notify) {
286278
$this->notifierMock->expects($this->once())
287279
->method('notify')

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundOrderStatusInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ public function toString()
4545
{
4646
return "Message with appropriate order status is available in Comments History section.";
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)