Skip to content

Commit 73fee07

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-60327' into 2.0-prs
2 parents c7bdfaa + acd6609 commit 73fee07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/Braintree/Test/Unit/Model/PaymentMethodTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ protected function setupOrderMock(
478478
'getCustomerEmail',
479479
'getCustomerId',
480480
'getStoreId',
481-
'getTotalDue'
481+
'getBaseTotalDue'
482482
]
483483
)->getMock();
484484

@@ -501,7 +501,7 @@ protected function setupOrderMock(
501501
->method('getStoreId')
502502
->willReturn($storeId);
503503
$orderMock->expects(static::any())
504-
->method('getTotalDue')
504+
->method('getBaseTotalDue')
505505
->willReturn(self::TOTAL_AMOUNT);
506506

507507
$this->orderRepository->expects(static::any())
@@ -1704,7 +1704,7 @@ protected function setupPaymentObjectForCapture($paymentId)
17041704
$order = $this->getMockBuilder('Magento\Sales\Api\Data\OrderInterface')
17051705
->getMockForAbstractClass();
17061706
$order->expects(static::any())
1707-
->method('getTotalDue')
1707+
->method('getBaseTotalDue')
17081708
->willReturn(self::TOTAL_AMOUNT);
17091709
$this->orderRepository->expects(static::any())
17101710
->method('get')

app/code/Magento/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ public function getAuthorizationTransaction()
12601260
*/
12611261
public function isCaptureFinal($amountToCapture)
12621262
{
1263-
$total = $this->getOrder()->getTotalDue();
1263+
$total = $this->getOrder()->getBaseTotalDue();
12641264
return $this->formatAmount($total, true) == $this->formatAmount($amountToCapture, true);
12651265
}
12661266

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ public function testIsCaptureFinal()
15211521
$partialAmount = 12.00;
15221522

15231523
$this->orderMock->expects(static::exactly(2))
1524-
->method('getTotalDue')
1524+
->method('getBaseTotalDue')
15251525
->willReturn($amount);
15261526

15271527
static::assertFalse($this->payment->isCaptureFinal($partialAmount));

0 commit comments

Comments
 (0)