File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dev/tests/static/testsuite/Magento/Test/Integrity/DBSchema Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ private function hasPrimaryKey(array $tableSchemaDeclaration): bool
71
71
}
72
72
73
73
/**
74
- * Get database schema declaration from file.
74
+ * Get database schema declarations from file.
75
75
*
76
76
* @param string $filePath
77
77
* @return array
@@ -84,7 +84,7 @@ private function getDbSchemaDeclarationByFile(string $filePath): array
84
84
}
85
85
86
86
/**
87
- * Get database schema declaration for whole application
87
+ * Get database schema declarations for whole application
88
88
*
89
89
* @return array
90
90
* @throws LocalizedException
@@ -94,8 +94,8 @@ private function getDbSchemaDeclarations(): array
94
94
$ declarations = [];
95
95
foreach (Files::init ()->getDbSchemaFiles () as $ filePath ) {
96
96
$ filePath = reset ($ filePath );
97
- preg_match ('#app/code/ (\w+/\w+)# ' , $ filePath , $ result );
98
- $ moduleName = str_replace ('/ ' , '\\ ' , $ result [1 ]);
97
+ preg_match ('#/ (\w+/\w+)/etc/db_schema.xml # ' , $ filePath , $ result );
98
+ $ moduleName = str_replace ('/ ' , '_ ' , $ result [1 ]);
99
99
$ moduleDeclaration = $ this ->getDbSchemaDeclarationByFile ($ filePath );
100
100
101
101
foreach ($ moduleDeclaration ['table ' ] as $ tableName => $ tableDeclaration ) {
You can’t perform that action at this time.
0 commit comments