Skip to content

Commit 4eacb3c

Browse files
committed
MAGETWO-58162: PayPal Payflow Pro always using USD (even if this currency is absent on your store)
- Fixed unit test
1 parent 337c63c commit 4eacb3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
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'
125+
'getId', 'getIncrementId', 'getBaseCurrencyCode'
126126
])
127127
->disableOriginalConstructor()
128128
->getMock();
@@ -164,6 +164,9 @@ protected function buildRequestData()
164164
$this->paymentMock->expects($this->once())
165165
->method('getOrder')
166166
->willReturn($this->orderMock);
167+
$this->orderMock->expects($this->once())
168+
->method('getBaseCurrencyCode')
169+
->willReturn('USD');
167170
$this->orderMock->expects($this->once())
168171
->method('getBillingAddress')
169172
->willReturn($this->addressBillingMock);

0 commit comments

Comments
 (0)