Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setUp () | |
testFailOnInvalidPrimaryKey () | |
testFailOnIncosistentReferenceDefinition () | |
testFailOnInvalidAutoIncrementField () | |
![]() | |
setData (array $data) | |
flushData () | |
getData () | |
The purpose of this test is verifying initial InstallSchema, InstallData scripts.
Definition at line 18 of file ValidationRulesTest.php.
setUp | ( | ) |
Definition at line 35 of file ValidationRulesTest.php.
testFailOnIncosistentReferenceDefinition | ( | ) |
@expectedException \Magento\Framework\Setup\Exception @expectedExceptionMessageRegExp /Column definition "page_id_on" and reference column definition "page_id" are different in tables "dependent" and "test_table"/ @moduleName Magento_TestSetupDeclarationModule8
Definition at line 71 of file ValidationRulesTest.php.
testFailOnInvalidAutoIncrementField | ( | ) |
@expectedException \Magento\Framework\Setup\Exception @expectedExceptionMessageRegExp /Auto Increment column do not have index. Column - "page_id"/ @moduleName Magento_TestSetupDeclarationModule8
Definition at line 90 of file ValidationRulesTest.php.
testFailOnInvalidPrimaryKey | ( | ) |
@expectedException \Magento\Framework\Setup\Exception @expectedExceptionMessageRegExp /Primary key can`t be applied on table "test_table". All columns should be not nullable/ @moduleName Magento_TestSetupDeclarationModule8
Definition at line 49 of file ValidationRulesTest.php.