Skip to content

Commit 3ce3b50

Browse files
committed
SFAPP-188: ComposetTest fails on blacklisted modules
1 parent ad29452 commit 3ce3b50

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)