Skip to content

Commit c502869

Browse files
committed
Merge branch 'ACP2E-3790' of https://github.com/adobe-commerce-tier-4/magento2ce into PR-04-03-2025
2 parents 0bea8c3 + 1a5c181 commit c502869

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

app/code/Magento/Directory/etc/config.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2011 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
99
<default>
1010
<system>
1111
<currency>
12-
<installed>AZN,AZM,AFN,ALL,DZD,AOA,ARS,AMD,AWG,AUD,BSD,BHD,BDT,BBD,BYN,BZD,BMD,BTN,BOB,BAM,BWP,BRL,GBP,BND,BGN,BUK,BIF,KHR,CAD,CVE,CZK,KYD,CLP,CNY,COP,KMF,CDF,CRC,HRK,CUP,DKK,DJF,DOP,XCD,EGP,SVC,GQE,ERN,EEK,ETB,EUR,FKP,FJD,GMD,GEK,GEL,GHS,GIP,GTQ,GNF,GYD,HTG,HNL,HKD,HUF,ISK,INR,IDR,IRR,IQD,ILS,JMD,JPY,JOD,KZT,KES,KWD,KGS,LAK,LVL,LBP,LSL,LRD,LYD,LTL,MOP,MKD,MGA,MWK,MYR,MVR,LSM,MRO,MUR,MXN,MDL,MNT,MAD,MZN,MMK,NAD,NPR,ANG,TRL,TRY,NZD,NIC,NIO,NGN,KPW,NOK,OMR,PKR,PAB,PGK,PYG,PEN,PHP,PLN,QAR,RHD,RON,ROL,RUB,RWF,SHP,STD,SAR,RSD,SCR,SLL,SGD,SKK,SBD,SOS,ZAR,KRW,LKR,SDG,SRD,SZL,SEK,CHF,SYP,TWD,TJS,TZS,THB,TOP,TTD,TND,TMM,USD,UGX,UAH,AED,UYU,UZS,VUV,VEB,VEF,VND,CHE,CHW,XOF,XPF,WST,YER,ZMK,ZWD</installed>
12+
<installed>AZN,AZM,AFN,ALL,DZD,AOA,ARS,AMD,AWG,AUD,BSD,BHD,BDT,BBD,BYN,BZD,BMD,BTN,BOB,BAM,BWP,BRL,GBP,BND,BGN,BUK,BIF,KHR,CAD,CVE,CZK,KYD,CLP,CNY,COP,KMF,CDF,CRC,HRK,CUP,DKK,DJF,DOP,XCD,EGP,SVC,GQE,ERN,EEK,ETB,EUR,FKP,FJD,GMD,GEK,GEL,GHS,GIP,GTQ,GNF,GYD,HTG,HNL,HKD,HUF,ISK,INR,IDR,IRR,IQD,ILS,JMD,JPY,JOD,KZT,KES,KWD,KGS,LAK,LVL,LBP,LSL,LRD,LYD,LTL,MOP,MKD,MGA,MWK,MYR,MVR,LSM,MRO,MUR,MXN,MDL,MNT,MAD,MZN,MMK,NAD,NPR,ANG,XCG,TRL,TRY,NZD,NIC,NIO,NGN,KPW,NOK,OMR,PKR,PAB,PGK,PYG,PEN,PHP,PLN,QAR,RHD,RON,ROL,RUB,RWF,SHP,STD,SAR,RSD,SCR,SLL,SGD,SKK,SBD,SOS,ZAR,KRW,LKR,SDG,SRD,SZL,SEK,CHF,SYP,TWD,TJS,TZS,THB,TOP,TTD,TND,TMM,USD,UGX,UAH,AED,UYU,UZS,VUV,VEB,VEF,VND,CHE,CHW,XOF,XPF,WST,YER,ZMK,ZWD</installed>
1313
</currency>
1414
</system>
1515
<currency>

dev/tests/integration/testsuite/Magento/Framework/Locale/ConfigTest.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
namespace Magento\Framework\Locale;
99

1010
use Magento\Config\Model\Config\Source\Locale\Currency;
11+
use Magento\Framework\App\Area;
1112
use Magento\TestFramework\Fixture\AppArea;
12-
use Magento\TestFramework\Fixture\AppIsolation;
13-
use Magento\TestFramework\Fixture\DbIsolation;
1413
use Magento\TestFramework\Helper\Bootstrap;
14+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
1515
use PHPUnit\Framework\TestCase;
1616

17+
#[
18+
AppArea(Area::AREA_ADMINHTML),
19+
]
1720
class ConfigTest extends TestCase
1821
{
1922
/**
@@ -31,11 +34,6 @@ protected function setUp(): void
3134
$this->currency = Bootstrap::getObjectManager()->get(Currency::class);
3235
}
3336

34-
#[
35-
AppArea('adminhtml'),
36-
DbIsolation(true),
37-
AppIsolation(true),
38-
]
3937
public function testNicaraguanCurrenciesExistsBoth()
4038
{
4139
$options = $this->currency->toOptionArray();
@@ -46,4 +44,14 @@ public function testNicaraguanCurrenciesExistsBoth()
4644
$this->assertContains('NIO', $values);
4745
$this->assertContains('NIC', $values);
4846
}
47+
48+
#[
49+
RequiresPhpExtension('intl', '>= 76'),
50+
]
51+
public function testCaribbeanGuilderExists()
52+
{
53+
$options = $this->currency->toOptionArray();
54+
$values = array_column($options, 'value');
55+
$this->assertContains('XCG', $values);
56+
}
4957
}

lib/internal/Magento/Framework/Locale/Config.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Framework\Locale;
77

@@ -219,6 +219,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
219219
'NAD', /*Namibia Dollar*/
220220
'NPR', /*Nepalese Rupee*/
221221
'ANG', /*Netherlands Antillan Guilder*/
222+
'XCG', /*Caribbean guilder*/
222223
'YTL', /*New Turkish Lira*/
223224
'NZD', /*New Zealand Dollar*/
224225
'NIC', /*Nicaraguan Cordoba (1988–1991)*/

0 commit comments

Comments
 (0)