File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Braintree/Test/Unit/Model Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ protected function setupOrderMock(
478
478
'getCustomerEmail ' ,
479
479
'getCustomerId ' ,
480
480
'getStoreId ' ,
481
- 'getTotalDue '
481
+ 'getBaseTotalDue '
482
482
]
483
483
)->getMock ();
484
484
@@ -501,7 +501,7 @@ protected function setupOrderMock(
501
501
->method ('getStoreId ' )
502
502
->willReturn ($ storeId );
503
503
$ orderMock ->expects (static ::any ())
504
- ->method ('getTotalDue ' )
504
+ ->method ('getBaseTotalDue ' )
505
505
->willReturn (self ::TOTAL_AMOUNT );
506
506
507
507
$ this ->orderRepository ->expects (static ::any ())
@@ -1704,7 +1704,7 @@ protected function setupPaymentObjectForCapture($paymentId)
1704
1704
$ order = $ this ->getMockBuilder ('Magento\Sales\Api\Data\OrderInterface ' )
1705
1705
->getMockForAbstractClass ();
1706
1706
$ order ->expects (static ::any ())
1707
- ->method ('getTotalDue ' )
1707
+ ->method ('getBaseTotalDue ' )
1708
1708
->willReturn (self ::TOTAL_AMOUNT );
1709
1709
$ this ->orderRepository ->expects (static ::any ())
1710
1710
->method ('get ' )
Original file line number Diff line number Diff line change @@ -1260,7 +1260,7 @@ public function getAuthorizationTransaction()
1260
1260
*/
1261
1261
public function isCaptureFinal ($ amountToCapture )
1262
1262
{
1263
- $ total = $ this ->getOrder ()->getTotalDue ();
1263
+ $ total = $ this ->getOrder ()->getBaseTotalDue ();
1264
1264
return $ this ->formatAmount ($ total , true ) == $ this ->formatAmount ($ amountToCapture , true );
1265
1265
}
1266
1266
Original file line number Diff line number Diff line change @@ -1521,7 +1521,7 @@ public function testIsCaptureFinal()
1521
1521
$ partialAmount = 12.00 ;
1522
1522
1523
1523
$ this ->orderMock ->expects (static ::exactly (2 ))
1524
- ->method ('getTotalDue ' )
1524
+ ->method ('getBaseTotalDue ' )
1525
1525
->willReturn ($ amount );
1526
1526
1527
1527
static ::assertFalse ($ this ->payment ->isCaptureFinal ($ partialAmount ));
You can’t perform that action at this time.
0 commit comments