Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AllspecificcountriesTest.php
Go to the documentation of this file.
1 <?php
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  ];
20  $this->assertEquals($expectedArray, $model->toOptionArray());
21  }
22 }
__()
Definition: __.php:13