Skip to content

Commit 023cb51

Browse files
committed
MAGETWO-57893: Orders processed via Paypal PAyflow Pro not receiving shipping/tax charges
- Fixed unit
1 parent c4d5b70 commit 023cb51

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

app/code/Magento/Paypal/Test/Unit/Model/Payflow/TransparentTest.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function initializationAuthorizeMock()
122122
$this->orderMock = $this->getMockBuilder(\Magento\Sales\Model\Order::class)
123123
->setMethods([
124124
'getCustomerId', 'getBillingAddress', 'getShippingAddress', 'getCustomerEmail',
125-
'getId', 'getIncrementId', 'getBaseTaxAmount', 'getBaseShippingAmount'
125+
'getId', 'getIncrementId'
126126
])
127127
->disableOriginalConstructor()
128128
->getMock();
@@ -176,12 +176,6 @@ protected function buildRequestData()
176176
$this->orderMock->expects($this->once())
177177
->method('getShippingAddress')
178178
->willReturn($this->addressShippingMock);
179-
$this->orderMock->expects(static::once())
180-
->method('getBaseTaxAmount')
181-
->willReturn(1.24);
182-
$this->orderMock->expects(static::once())
183-
->method('getBaseShippingAmount')
184-
->willReturn(5);
185179
$this->addressBillingMock->expects($this->once())
186180
->method('getFirstname')
187181
->willReturn('Firstname');
@@ -431,9 +425,6 @@ public function testAuthorize()
431425
->method('setVaultPaymentToken')
432426
->with($paymentTokenMock);
433427

434-
$this->object->authorize($this->paymentMock, 33);
435-
// $this->assertSame($this->object, $this->object->authorize($this->paymentMock, 33));
436-
$request = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
437-
\Magento\Paypal\Model\Payflow\Request::class);
428+
$this->assertSame($this->object, $this->object->authorize($this->paymentMock, 33));
438429
}
439430
}

0 commit comments

Comments
 (0)