Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MultiSelectConfigOptionTest.php
Go to the documentation of this file.
1 <?php
7 
10 
11 class MultiSelectConfigOptionTest extends \PHPUnit\Framework\TestCase
12 {
18  {
19  new MultiSelectConfigOption('test', TextConfigOption::FRONTEND_WIZARD_TEXT, ['a', 'b'], 'path/to/value');
20  }
21 
26  public function testConstructNoOptions()
27  {
29  }
30 
31  public function testGetFrontendType()
32  {
34  'test',
36  ['a', 'b'],
37  'path/to/value'
38  );
39  $this->assertEquals(MultiSelectConfigOption::FRONTEND_WIZARD_MULTISELECT, $option->getFrontendType());
40  }
41 
42  public function testGetSelectOptions()
43  {
45  'test',
47  ['a', 'b'],
48  'path/to/value'
49  );
50  $this->assertEquals(['a', 'b'], $option->getSelectOptions());
51  }
52 
57  public function testValidateException()
58  {
60  'test',
62  ['a', 'b'],
63  'path/to/value'
64  );
65  $option->validate(['c', 'd']);
66  }
67 }