The purpose of this test is to check whether whole declarative installation is work in mixed mode
Definition at line 22 of file BCMultiModuleTest.php.
◆ firstCleanInstallOneModuleDataProvider()
firstCleanInstallOneModuleDataProvider |
( |
| ) |
|
- Returns
- array
Definition at line 246 of file BCMultiModuleTest.php.
249 'Installation without db prefix' => [
251 'tableName' =>
'test_table',
252 'indexName' =>
'TEST_TABLE_TINYINT_BIGINT',
253 'constraintName' =>
'TEST_TABLE_SMALLINT_BIGINT',
254 'foreignKeyName' =>
'TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF',
256 'Installation with db prefix' => [
257 'dbPrefix' =>
'spec_',
258 'tableName' =>
'spec_test_table',
259 'indexName' =>
'SPEC_TEST_TABLE_TINYINT_BIGINT',
260 'constraintName' =>
'SPEC_TEST_TABLE_SMALLINT_BIGINT',
261 'foreignKeyName' =>
'SPEC_TEST_TABLE_TINYINT_SPEC_REFERENCE_TABLE_TINYINT_REF',
◆ setUp()
◆ testDSFirstRelease()
@moduleName Magento_TestSetupDeclarationModule6 @moduleName Magento_TestSetupDeclarationModule7
Definition at line 170 of file BCMultiModuleTest.php.
172 $this->cliCommand->install([
173 'Magento_TestSetupDeclarationModule6',
174 'Magento_TestSetupDeclarationModule7' 177 $this->cliCommand->upgrade();
179 $this->doUsToUsRevision();
181 $this->cliCommand->upgrade();
182 $this->assertUsToUsUpgrade();
184 $this->doUsToDsRevision();
186 $this->cliCommand->upgrade();
187 $this->assertUsToDsUpgrade();
189 $this->moduleManager->updateRevision(
190 'Magento_TestSetupDeclarationModule7',
192 'db_schema_whitelist.json',
196 $this->cliCommand->upgrade();
197 $tables = $this->dbSchemaReader->readTables(
'default');
198 self::assertNotContains(
'custom_table', $tables);
◆ testFirstCleanInstall()
testFirstCleanInstall |
( |
| ) |
|
@moduleName Magento_TestSetupDeclarationModule6 @moduleName Magento_TestSetupDeclarationModule7
Definition at line 69 of file BCMultiModuleTest.php.
71 $this->cliCommand->install([
72 'Magento_TestSetupDeclarationModule6',
73 'Magento_TestSetupDeclarationModule7' 76 $indexes = $this->dbSchemaReader->readIndexes(
'test_table',
'default');
77 self::assertCount(1, $indexes);
78 self::assertArrayHasKey(
'TEST_TABLE_TINYINT_BIGINT', $indexes);
80 $columns = $this->dbSchemaReader->readColumns(
'test_table',
'default');
82 self::assertEquals(29, $floatColumn[
'default']);
◆ testFirstCleanInstallOneModule()
testFirstCleanInstallOneModule |
( |
string |
$dbPrefix, |
|
|
string |
$tableName, |
|
|
string |
$indexName, |
|
|
string |
$constraintName, |
|
|
string |
$foreignKeyName |
|
) |
| |
@moduleName Magento_TestSetupDeclarationModule1 @dataProvider firstCleanInstallOneModuleDataProvider
- Parameters
-
string | $dbPrefix | |
string | $tableName | |
string | $indexName | |
string | $constraintName | |
string | $foreignKeyName | |
- Exceptions
-
Definition at line 211 of file BCMultiModuleTest.php.
218 $this->cliCommand->install(
220 'Magento_TestSetupDeclarationModule1' 223 'db-prefix' => $dbPrefix,
227 $indexes = $this->dbSchemaReader
229 self::assertCount(1, $indexes);
230 self::assertArrayHasKey($indexName, $indexes);
232 $constraints = $this->dbSchemaReader
234 self::assertCount(1, $constraints);
235 self::assertArrayHasKey($constraintName, $constraints);
237 $foreignKeys = $this->dbSchemaReader
239 self::assertCount(1, $foreignKeys);
240 self::assertArrayHasKey($foreignKeyName, $foreignKeys);
The documentation for this class was generated from the following file: