Skip to content

Commit af54910

Browse files
committed
MAGETWO-69607: Edition Specific BN-Codes for 2.2.x
- Changed the config scope
1 parent 0c3e21e commit af54910

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public function isMethodSupportedForCountry($method = null, $countryCode = null)
335335
*/
336336
public function getBuildNotationCode()
337337
{
338-
$notationCode = $this->_scopeConfig->getValue('paypal/notation_code');
338+
$notationCode = $this->_scopeConfig->getValue('paypal/notation_code', ScopeInterface::SCOPE_STORES);
339339
return $notationCode ?: sprintf(self::$bnCode, $this->getProductMetadata()->getEdition());
340340
}
341341

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function testBuildNotationCodeFromConfig()
319319
$notationCode = 'Magento_Cart_EditionFromConfig';
320320

321321
$this->scopeConfigMock->method('getValue')
322-
->with(self::equalTo('paypal/notation_code'))
322+
->with(self::equalTo('paypal/notation_code'), self::equalTo('stores'))
323323
->willReturn($notationCode);
324324

325325
self::assertEquals($notationCode, $this->config->getBuildNotationCode());

0 commit comments

Comments
 (0)