The purpose of this test is validating schema reader operations.
Definition at line 23 of file DataPatchInstallationTest.php.
◆ setUp()
◆ testCyclomaticDependency()
testCyclomaticDependency |
( |
| ) |
|
@moduleName Magento_TestSetupDeclarationModule3 @expectedException \Magento\Framework\Exception\LocalizedException
Test whether installation give the same result as upgrade
Definition at line 98 of file DataPatchInstallationTest.php.
100 $this->moduleManager->updateRevision(
101 'Magento_TestSetupDeclarationModule3',
102 'cyclomatic_and_bic_revision',
107 $this->movePatches();
111 $this->cliCommad->install(
112 [
'Magento_TestSetupDeclarationModule3']
114 $tableData = $this->tableData->describeTableData(
'test_table');
115 self::assertEquals($this->getTestTableData(), $tableData);
116 $this->moduleManager->updateRevision(
117 'Magento_TestSetupDeclarationModule3',
118 'cyclomatic_and_bic_revision',
122 $this->moduleManager->updateRevision(
123 'Magento_TestSetupDeclarationModule3',
124 'cyclomatic_and_bic_revision',
129 $this->cliCommad->upgrade();
◆ testDataPatchesInstallation()
testDataPatchesInstallation |
( |
| ) |
|
@moduleName Magento_TestSetupDeclarationModule3
Definition at line 63 of file DataPatchInstallationTest.php.
65 $this->cliCommad->install(
66 [
'Magento_TestSetupDeclarationModule3']
71 $this->moduleResource->getDataVersion(
'Magento_TestSetupDeclarationModule3')
74 $this->moduleManager->updateRevision(
75 'Magento_TestSetupDeclarationModule3',
76 'first_patch_revision',
82 $this->cliCommad->upgrade();
85 $this->moduleResource->getDataVersion(
'Magento_TestSetupDeclarationModule3')
87 self::assertTrue($this->patchList->isApplied(IncrementalSomeIntegerPatch::class));
88 self::assertTrue($this->patchList->isApplied(ReferenceIncrementalSomeIntegerPatch::class));
89 self::assertTrue($this->patchList->isApplied(ZFirstPatch::class));
90 $tableData = $this->tableData->describeTableData(
'test_table');
91 self::assertEquals($this->getTestTableData(), $tableData);
◆ testPatchesRevert()
@moduleName Magento_TestSetupDeclarationModule3
Definition at line 163 of file DataPatchInstallationTest.php.
165 $this->movePatches();
166 $this->cliCommad->install([
'Magento_TestSetupDeclarationModule3']);
167 $this->cliCommad->uninstallModule(
'Magento_TestSetupDeclarationModule3');
168 $testTableData = $this->tableData->describeTableData(
'test_table');
169 $patchListTableData = $this->tableData->describeTableData(
'patch_list');
170 self::assertEmpty($patchListTableData);
171 self::assertEmpty($testTableData);
172 $refTableData = $this->tableData->describeTableData(
'reference_table');
173 self::assertEquals($this->getRefTableData(), $refTableData);
The documentation for this class was generated from the following file: