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
framework
Setup
Test
Unit
Option
TextConfigOptionTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Test\Unit\Option
;
7
8
use
Magento\Framework\Setup\Option\SelectConfigOption
;
9
use
Magento\Framework\Setup\Option\TextConfigOption
;
10
11
class
TextConfigOptionTest
extends
\PHPUnit\Framework\TestCase
12
{
17
public
function
testConstructInvalidFrontendType
()
18
{
19
new
TextConfigOption
(
'test'
,
SelectConfigOption::FRONTEND_WIZARD_SELECT
,
'path/to/value'
);
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
}
Magento\Framework\Setup\Option\TextConfigOption\FRONTEND_WIZARD_TEXT
const FRONTEND_WIZARD_TEXT
Definition:
TextConfigOption.php:16
Magento\Framework\Setup\Option\TextConfigOption
Definition:
TextConfigOption.php:11
Magento\Framework\Setup\Test\Unit\Option\TextConfigOptionTest\testConstructInvalidFrontendType
testConstructInvalidFrontendType()
Definition:
TextConfigOptionTest.php:17
Magento\Framework\Setup\Test\Unit\Option\TextConfigOptionTest\testGetFrontendType
testGetFrontendType()
Definition:
TextConfigOptionTest.php:22
Magento\Framework\Setup\Test\Unit\Option
Definition:
FlagConfigOptionTest.php:6
Magento\Framework\Setup\Option\SelectConfigOption\FRONTEND_WIZARD_SELECT
const FRONTEND_WIZARD_SELECT
Definition:
SelectConfigOption.php:17
Magento\Framework\Setup\Option\SelectConfigOption
Definition:
SelectConfigOption.php:11
Magento\Framework\Setup\Test\Unit\Option\TextConfigOptionTest
Definition:
TextConfigOptionTest.php:11
$option
$option
Definition:
product_configurable_with_single_child.php:38
Magento\Framework\Setup\Test\Unit\Option\TextConfigOptionTest\testValidateException
testValidateException()
Definition:
TextConfigOptionTest.php:32