26 $totalsBase = [4, 5, 6.7];
28 $grandTotalBase = 15.7;
32 'getAllBaseTotalAmounts',
38 $totalMock->expects($this->once())->method(
'getGrandTotal')->willReturn(2);
39 $totalMock->expects($this->once())->method(
'getBaseGrandTotal')->willReturn(2);
40 $totalMock->expects($this->once())->method(
'getAllTotalAmounts')->willReturn(
$totals);
41 $totalMock->expects($this->once())->method(
'getAllBaseTotalAmounts')->willReturn($totalsBase);
42 $totalMock->expects($this->once())->method(
'setGrandTotal')->with($grandTotal + 2);
43 $totalMock->expects($this->once())->method(
'setBaseGrandTotal')->with($grandTotalBase + 2);
45 $this->model->collect(
47 $this->createMock(\
Magento\
Quote\Api\Data\ShippingAssignmentInterface::class),