Skip to content

Commit 754fa7a

Browse files
committed
ACP2E-3045: Order closed without fully refunded
1 parent cbfe8e7 commit 754fa7a

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ protected function setUp(): void
4545
'getIsVirtual',
4646
'getIsNotVirtual',
4747
'getStatus',
48-
'getAllItems'
48+
'getAllItems',
49+
'getTotalDue'
4950
]
5051
)
5152
->disableOriginalConstructor()
@@ -107,6 +108,8 @@ public function testCheck(
107108
->willReturn($isNotVirtual);
108109
$this->orderMock->method('getAllItems')
109110
->willReturn([]);
111+
$this->orderMock->method('getTotalDue')
112+
->willReturn(0);
110113
if (!$isNotVirtual) {
111114
$this->orderMock->method('getIsVirtual')
112115
->willReturn(!$isNotVirtual);

0 commit comments

Comments
 (0)