Skip to content

Commit 397e33b

Browse files
author
Serhii Balko
committed
MC-41069: Free Shipping enables with wrong total for DHL
1 parent 33b7c95 commit 397e33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Ups/Test/Unit/Model/CarrierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function testGetMethodPrice(
226226
->willReturn($freeShippingEnabled);
227227

228228
$request = new RateRequest();
229-
$request->setBaseSubtotalInclTax($requestSubtotal);
229+
$request->setValueWithDiscount($requestSubtotal);
230230
$this->model->setRawRequest($request);
231231
$price = $this->model->getMethodPrice($cost, $shippingMethod);
232232
$this->assertEquals($expectedPrice, $price);

0 commit comments

Comments
 (0)