Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
YesnoshortcutTest.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class YesnoshortcutTest extends \PHPUnit\Framework\TestCase
11 {
15  protected $_model;
16 
17  protected function setUp()
18  {
19  $this->_model = new Yesnoshortcut();
20  }
21 
22  public function testToOptionArray()
23  {
24  $expectedResult = [
25  ['value' => 1, 'label' => __('Yes (PayPal recommends this option)')],
26  ['value' => 0, 'label' => __('No')]
27  ];
28  $this->assertEquals($expectedResult, $this->_model->toOptionArray());
29  }
30 }
__()
Definition: __.php:13