Skip to content

Commit 85a5c33

Browse files
author
Olga Kopylova
committed
MAGETWO-34434: Fix Dependency Test
- fixed few bugs in the test (incorrect usage of Vendor\Module vs Vendor_Module) - adjusted the test to the new representation of installs/upgrades - fixed missing dependencies
1 parent 5e64718 commit 85a5c33

File tree

11 files changed

+321
-313
lines changed

11 files changed

+321
-313
lines changed

app/code/Magento/Core/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6+
"magento/module-authorization": "0.42.0-beta9",
67
"magento/module-store": "0.42.0-beta9",
78
"magento/module-backend": "0.42.0-beta9",
89
"magento/framework": "0.42.0-beta9",

app/code/Magento/Dhl/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6+
"magento/module-core": "0.42.0-beta9",
67
"magento/module-store": "0.42.0-beta9",
78
"magento/module-shipping": "0.42.0-beta9",
89
"magento/module-backend": "0.42.0-beta9",

app/code/Magento/Fedex/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6+
"magento/module-core": "0.42.0-beta9",
67
"magento/module-store": "0.42.0-beta9",
78
"magento/module-shipping": "0.42.0-beta9",
89
"magento/module-directory": "0.42.0-beta9",

app/code/Magento/OfflineShipping/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"magento/module-sales-rule": "0.42.0-beta9",
1111
"magento/module-directory": "0.42.0-beta9",
1212
"magento/module-checkout": "0.42.0-beta9",
13+
"magento/module-sales": "0.42.0-beta9",
1314
"magento/module-quote": "0.42.0-beta9",
1415
"magento/framework": "0.42.0-beta9",
1516
"magento/magento-composer-installer": "*"

app/code/Magento/Quote/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"php": "~5.5.0|~5.6.0",
66
"magento/module-store": "0.42.0-beta9",
77
"magento/module-catalog": "0.42.0-beta9",
8+
"magento/module-catalog-rule": "0.42.0-beta9",
89
"magento/module-customer": "0.42.0-beta9",
910
"magento/module-authorization": "0.42.0-beta9",
1011
"magento/module-payment": "0.42.0-beta9",

app/code/Magento/SalesRule/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"require": {
55
"php": "~5.5.0|~5.6.0",
66
"magento/module-store": "0.42.0-beta9",
7+
"magento/module-eav": "0.42.0-beta9",
78
"magento/module-rule": "0.42.0-beta9",
89
"magento/module-catalog": "0.42.0-beta9",
910
"magento/module-sales": "0.42.0-beta9",

app/code/Magento/Search/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"php": "~5.5.0|~5.6.0",
66
"magento/framework": "0.42.0-beta9",
77
"magento/module-backend": "0.42.0-beta9",
8+
"magento/module-catalog-search": "0.42.0-beta9",
89
"magento/module-store": "0.42.0-beta9",
910
"magento/module-reports": "0.42.0-beta9",
1011
"magento/magento-composer-installer": "*"

app/code/Magento/Usps/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6+
"magento/module-core": "0.42.0-beta9",
67
"magento/module-store": "0.42.0-beta9",
78
"magento/module-shipping": "0.42.0-beta9",
89
"magento/module-directory": "0.42.0-beta9",

dev/tests/static/framework/Magento/TestFramework/Dependency/DbRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(array $tables)
3737
*/
3838
public function getDependencyInfo($currentModule, $fileType, $file, &$contents)
3939
{
40-
if (!preg_match('#/app/.*/(sql|data|resource)/.*\.php$#', $file)) {
40+
if (!preg_match('#/app/.*/(Setup|Resource)/.*\.php$#', $file)) {
4141
return [];
4242
}
4343

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ private function collectDependency($dependency, $currentModule, &$undeclared)
311311
$hard = $this->_getDependencies($currentModule, self::TYPE_HARD, self::MAP_TYPE_DECLARED);
312312

313313
$declared = $type == self::TYPE_SOFT ? array_merge($soft, $hard) : $hard;
314-
if (!in_array($module, $declared) && !in_array($nsModule, $declared) && !$this->_isFake($module)) {
314+
if (!in_array($module, $declared) && !in_array($nsModule, $declared) && !$this->_isFake($nsModule)) {
315315
$undeclared[$type][] = $module;
316-
} elseif ((in_array($module, $declared) || in_array($nsModule, $declared)) && $this->_isFake($module)) {
316+
} elseif ((in_array($module, $declared) || in_array($nsModule, $declared)) && $this->_isFake($nsModule)) {
317317
$this->_setDependencies($currentModule, $type, self::MAP_TYPE_REDUNDANT, $module);
318318
}
319319

0 commit comments

Comments
 (0)