Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
Test
Unit
Model
Config
Source
AllspecificcountriesTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Payment\Test\Unit\Model\Config\Source
;
8
9
use \Magento\Payment\Model\Config\Source\Allspecificcountries;
10
11
class
AllspecificcountriesTest
extends
\PHPUnit\Framework\TestCase
12
{
13
public
function
testToOptionArray
()
14
{
15
$expectedArray = [
16
[
'value'
=> 0,
'label'
=>
__
(
'All Allowed Countries'
)],
17
[
'value'
=> 1,
'label'
=>
__
(
'Specific Countries'
)],
18
];
19
$model
=
new
Allspecificcountries
();
20
$this->assertEquals($expectedArray,
$model
->toOptionArray());
21
}
22
}
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Payment\Test\Unit\Model\Config\Source\AllspecificcountriesTest
Definition:
AllspecificcountriesTest.php:11
__
__()
Definition:
__.php:13
Magento\Payment\Test\Unit\Model\Config\Source
Definition:
AllmethodsTest.php:7
Magento\Payment\Test\Unit\Model\Config\Source\AllspecificcountriesTest\testToOptionArray
testToOptionArray()
Definition:
AllspecificcountriesTest.php:13
Magento\Payment\Model\Config\Source\Allspecificcountries
Definition:
Allspecificcountries.php:12