|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| testAddAttribute ($attributeCode) | |
| addAttributeDataProvider () | |
| testAddAttributeThrowException ($attributeCode) | |
| addAttributeThrowExceptionDataProvider () | |
Protected Member Functions | |
| setUp () | |
Test class for Magento\Eav\Setup\EavSetup. @magentoDbIsolation enabled
Definition at line 13 of file EavSetupTest.php.
| addAttributeDataProvider | ( | ) |
Data provider for testAddAttributeThrowException().
Definition at line 54 of file EavSetupTest.php.
| addAttributeThrowExceptionDataProvider | ( | ) |
Data provider for testAddAttributeThrowException().
Definition at line 83 of file EavSetupTest.php.
|
protected |
{}
Definition at line 25 of file EavSetupTest.php.
| testAddAttribute | ( | $attributeCode | ) |
Verify that add attribute work correct attribute_code.
| string | $attributeCode | @dataProvider addAttributeDataProvider |
Definition at line 38 of file EavSetupTest.php.
| testAddAttributeThrowException | ( | $attributeCode | ) |
Verify that add attribute throw exception if attribute_code is not valid.
| string | null | $attributeCode | @dataProvider addAttributeThrowExceptionDataProvider @expectedException \Magento\Framework\Exception\LocalizedException @expectedExceptionMessage An attribute code must not be less than 1 and more than 60 characters. |
Definition at line 71 of file EavSetupTest.php.