Skip to content

Commit d49445a

Browse files
committed
MC-5421: Create test to check dependencies between modules in Declarative Schema
1 parent c8cd9e5 commit d49445a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/tests/static/testsuite/Magento/Test/Integrity/DeclarativeDependencyTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function ($file) {
8585
foreach ($undeclaredDependency as $name => $modules) {
8686
$modules = array_unique($modules);
8787
if ($this->filterBlacklistedDependencies($foundModuleName, $modules)) {
88-
$result[] = $this->getErrorMessage($name) . "\n" . implode("\t\n", $modules);
88+
$result[] = $this->getErrorMessage($name) . "\n" . implode("\t\n", $modules) . "\n";
8989
}
9090
}
9191
if (count($result)) {
@@ -144,12 +144,12 @@ private function getErrorMessage(string $id): string
144144
$entityType = $decodedId['entityType'];
145145
if ($entityType === DeclarativeSchemaDependencyProvider::SCHEMA_ENTITY_TABLE) {
146146
$message = sprintf(
147-
'Table %s has undeclared dependency on one of the next modules.',
147+
'Table %s has undeclared dependency on one of the following modules:',
148148
$decodedId['tableName']
149149
);
150150
} else {
151151
$message = sprintf(
152-
'%s %s from %s table has undeclared dependency on one of the next modules.',
152+
'%s %s from %s table has undeclared dependency on one of the following modules:',
153153
ucfirst($entityType),
154154
$decodedId['entityName'],
155155
$decodedId['tableName']

0 commit comments

Comments
 (0)