Skip to content

Commit a8bc39e

Browse files
author
Yushkin, Dmytro
committed
MAGETWO-40138: Paypal express marks on checkout are small
- changes for PayPal Express - fix unit test
1 parent 829d022 commit a8bc39e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/code/Magento/Paypal/Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ public function getPaymentMarkImageUrl($localeCode, $orderTotal = null, $pal = n
971971
case self::PAYMENT_MARK_LARGE:
972972
break;
973973
default:
974-
$staticSize = self::PAYMENT_MARK_SMALL;
974+
$staticSize = self::PAYMENT_MARK_MEDIUM;
975975
}
976976

977977
return sprintf(

app/code/Magento/Paypal/Test/Unit/Model/ConfigTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ public function dataProviderGetExpressCheckoutShortcutImageUrl()
345345
'en_GB', null, null, Config::EC_FLAVOR_DYNAMIC, false, Config::EC_BUTTON_TYPE_SHORTCUT,
346346
'https://fpdbs.paypal.com/dynamicimageweb?cmd=_dynamic-image&buttontype=ecshortcut&locale=en_GB'
347347
],
348+
[
349+
'en_US', null, null, Config::EC_FLAVOR_STATIC, false, Config::EC_BUTTON_TYPE_MARK,
350+
'https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-medium.png'
351+
],
348352
[
349353
'en_US', null, null, Config::EC_FLAVOR_STATIC, true, Config::EC_BUTTON_TYPE_SHORTCUT,
350354
'https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png'],
@@ -419,7 +423,11 @@ public function dataProviderGetPaymentMarkImageUrl()
419423
[
420424
'en_US', null, null, 'large', Config::EC_FLAVOR_STATIC, true,
421425
'https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-large.png'
422-
]
426+
],
427+
[
428+
'en_GB', null, null, 'affected', Config::EC_FLAVOR_STATIC, true,
429+
'https://www.paypalobjects.com/webstatic/en_US/i/buttons/pp-acceptance-medium.png'
430+
],
423431
];
424432
}
425433
}

0 commit comments

Comments
 (0)