The purpose of this test is verifying initial InstallSchema, InstallData scripts.
Definition at line 20 of file DiffOldSchemaTest.php.
◆ oldSchemaUpgradeDataProvider()
oldSchemaUpgradeDataProvider |
( |
| ) |
|
- Returns
- array
Definition at line 139 of file DiffOldSchemaTest.php.
142 'Without db prefix' => [
145 'With db prefix' => [
146 'dbPrefix' =>
'spec_',
◆ setUp()
◆ testOldDiff()
@moduleName Magento_TestSetupDeclarationModule1
Definition at line 60 of file DiffOldSchemaTest.php.
63 $this->moduleManager->updateRevision(
64 'Magento_TestSetupDeclarationModule1',
70 $this->moduleManager->updateRevision(
71 'Magento_TestSetupDeclarationModule1',
76 $this->cliCommad->install([
'Magento_TestSetupDeclarationModule1']);
78 $this->moduleManager->updateRevision(
79 'Magento_TestSetupDeclarationModule1',
84 $declarativeSchema = $this->schemaConfig->getDeclarationConfig();
85 $generatedSchema = $this->schemaConfig->getDbConfig();
86 $diff = $this->schemaDiff->diff($declarativeSchema, $generatedSchema);
87 $allChanges = $diff->getAll();
88 self::assertCount(1, $allChanges);
90 $this->getBigIntKeyXmlSensitiveData(),
91 reset($allChanges)[
'modify_column'][0]->getNew()->getDiffSensitiveParams()
94 $this->getBigIntKeyDbSensitiveData(),
95 reset($allChanges)[
'modify_column'][0]->getOld()->getDiffSensitiveParams()
◆ testOldSchemaUpgrade()
testOldSchemaUpgrade |
( |
string |
$dbPrefix | ) |
|
@moduleName Magento_TestSetupDeclarationModule1
- Parameters
-
- Exceptions
-
Definition at line 105 of file DiffOldSchemaTest.php.
107 $this->moduleManager->updateRevision(
108 'Magento_TestSetupDeclarationModule1',
113 $this->moduleManager->updateRevision(
114 'Magento_TestSetupDeclarationModule1',
119 $this->cliCommad->install(
120 [
'Magento_TestSetupDeclarationModule1'],
121 [
'db-prefix' => $dbPrefix]
124 $this->moduleManager->updateRevision(
125 'Magento_TestSetupDeclarationModule1',
130 $declarativeSchema = $this->schemaConfig->getDeclarationConfig();
131 $generatedSchema = $this->schemaConfig->getDbConfig();
132 $diff = $this->schemaDiff->diff($declarativeSchema, $generatedSchema);
133 self::assertEmpty($diff->getAll());
The documentation for this class was generated from the following file: