Skip to content

Commit 16f6617

Browse files
bl4deeliseacornejo
authored andcommitted
Improve error message for static test for redundant dependencies (#224)
1 parent 488c103 commit 16f6617

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ class DependencyTest extends \PHPUnit\Framework\TestCase
5959
*/
6060
public const MAP_TYPE_REDUNDANT = 'redundant';
6161

62+
/**
63+
* Redundant dependencies error message
64+
*/
65+
public const UNUSED_DEPENDENCY_ERROR_MSG =
66+
'Some dependencies required by composer.json are not used in the module and must be removed:';
67+
6268
/**
6369
* Count of directories in path
6470
*/
@@ -869,7 +875,7 @@ public function testRedundant()
869875
}
870876
}
871877
if (!empty($output)) {
872-
$this->fail("Redundant dependencies found!\r\n" . implode(' ', $output));
878+
$this->fail(self::UNUSED_DEPENDENCY_ERROR_MSG . "\r\n" . implode(' ', $output));
873879
}
874880
}
875881

0 commit comments

Comments
 (0)