Skip to content

Commit 285b397

Browse files
Merge pull request #6463 from RuslanKostiv1/SFAPP-188-composer-test-blacklist
SFAPP-188: ComposetTest fails on blacklisted modules
2 parents 2c173c9 + 3af45a3 commit 285b397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,10 @@ private function assertAutoloadRegistrar(\StdClass $json, $dir)
266266
*/
267267
private function assertNoVersionSpecified(\StdClass $json)
268268
{
269-
$errorMessage = 'Version must not be specified in the root and package composer JSON files in Git';
270-
$this->assertObjectNotHasAttribute('version', $json, $errorMessage);
269+
if (!in_array($json->name, self::$rootComposerModuleBlacklist)) {
270+
$errorMessage = 'Version must not be specified in the root and package composer JSON files in Git';
271+
$this->assertObjectNotHasAttribute('version', $json, $errorMessage);
272+
}
271273
}
272274

273275
/**

0 commit comments

Comments
 (0)