Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TextConfigOptionTest.php
Go to the documentation of this file.
1 <?php
7 
10 
11 class TextConfigOptionTest extends \PHPUnit\Framework\TestCase
12 {
18  {
20  }
21 
22  public function testGetFrontendType()
23  {
24  $option = new TextConfigOption('test', TextConfigOption::FRONTEND_WIZARD_TEXT, 'path/to/value');
25  $this->assertEquals(TextConfigOption::FRONTEND_WIZARD_TEXT, $option->getFrontendType());
26  }
27 
32  public function testValidateException()
33  {
34  $option = new TextConfigOption('test', TextConfigOption::FRONTEND_WIZARD_TEXT, 'path/to/value');
35  $option->validate(1);
36  }
37 }