Skip to content

Commit 782a8ba

Browse files
AC-2044::Cart Price Rule with shipping method set as condition is not working Magento - fixed unit tests against changes
1 parent ed54a54 commit 782a8ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Checkout/Test/Unit/Model/TotalsInformationManagementTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ public function testResetShippingAmount()
135135
'getShippingMethod',
136136
'setShippingAmount',
137137
'setBaseShippingAmount',
138+
'save'
138139
]
139140
)
140141
->disableOriginalConstructor()
@@ -166,6 +167,9 @@ public function testResetShippingAmount()
166167
$addressMock->expects($this->once())
167168
->method('setShippingMethod')
168169
->with($carrierCode . '_' . $carrierMethod);
170+
$addressMock->expects($this->once())
171+
->method('save')
172+
->willReturnSelf();
169173
$cartMock->expects($this->once())
170174
->method('collectTotals');
171175

0 commit comments

Comments
 (0)