/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/Framework/Locale/ConfigTest.php
57 строк
1 KB
Dnyaneshwar S Jambhulkar
AC-17094::[May Release]Integration Tests Composer Build Failure
06 май 2026, 13:43
06 май 2026, 13:43
b57f082
Код
Авторство
О чём код?
<?php /** * Copyright 2023 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Locale; use Magento\Config\Model\Config\Source\Locale\Currency; use Magento\Framework\App\Area; use Magento\TestFramework\Fixture\AppArea; use Magento\TestFramework\Helper\Bootstrap; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase; #[ AppArea(Area::AREA_ADMINHTML), ] class ConfigTest extends TestCase { /** * @var Currency */ private $currency; /** * @inheritdoc */ protected function setUp(): void { parent::setUp(); $this->currency = Bootstrap::getObjectManager()->get(Currency::class); } public function testNicaraguanCurrenciesExistsBoth() { $options = $this->currency->toOptionArray(); $values = []; foreach ($options as $option) { $values[] = $option['value']; } $this->assertContains('NIO', $values); $this->assertContains('NIC', $values); } #[ RequiresPhpExtension('intl', '>= 76.0.0'), ] public function testCaribbeanGuilderExists() { $options = $this->currency->toOptionArray(); $values = array_column($options, 'value'); $this->assertContains('XCG', $values); } }