@@ -275,13 +275,12 @@ public function getModulesPath($flat = true)
275
275
$ allModulePaths = $ this ->normalizeModuleNames ($ allModulePaths );
276
276
277
277
if (MftfApplicationConfig::getConfig ()->forceGenerateEnabled ()) {
278
- $ allModulePaths = $ this ->flipAndFlattenArray ($ allModulePaths );
278
+ $ allModulePaths = $ this ->flipAndFilterArray ($ allModulePaths );
279
279
$ this ->enabledModulePaths = $ this ->applyCustomModuleMethods ($ allModulePaths );
280
280
return $ this ->enabledModulePaths ;
281
281
}
282
282
283
283
$ enabledModules = array_merge ($ this ->getEnabledModules (), $ this ->getModuleWhitelist ());
284
- //$enabledDirectoryPaths = $this->getEnabledDirectoryPaths($enabledModules, $allModulePaths);
285
284
$ enabledDirectoryPaths = $ this ->flipAndFilterArray ($ allModulePaths , $ enabledModules );
286
285
287
286
$ this ->enabledModulePaths = $ this ->applyCustomModuleMethods ($ enabledDirectoryPaths );
@@ -425,7 +424,7 @@ private function globRelevantPaths($testPath, $pattern)
425
424
&& !empty ($ modulePaths )
426
425
) {
427
426
$ deprecatedPath = self ::DEPRECATED_DEV_TESTS ;
428
- $ suggestedPath = self ::DEV_TESTS . DIRECTORY_SEPARATOR . 'Vendor ' ;
427
+ $ suggestedPath = self ::DEV_TESTS . DIRECTORY_SEPARATOR . 'Magento ' ;
429
428
LoggingUtil::getInstance ()->getLogger (ModuleResolver::class)->warning (
430
429
"DEPRECATION: $ deprecatedPath is deprecated! Please move mftf test modules to $ suggestedPath "
431
430
);
@@ -600,31 +599,6 @@ private function flattenAllModulePaths($modulePaths)
600
599
return $ resultArray ;
601
600
}
602
601
603
- /**
604
- * Runs through enabled modules and maps them known module paths by name.
605
- * @param array $enabledModules
606
- * @param array $allModulePaths
607
- * @return array
608
- */
609
- private function getEnabledDirectoryPaths ($ enabledModules , $ allModulePaths )
610
- {
611
- $ enabledDirectoryPaths = [];
612
- foreach ($ enabledModules as $ magentoModuleName ) {
613
- if (!isset ($ this ->knownDirectories [$ magentoModuleName ]) && !isset ($ allModulePaths [$ magentoModuleName ])) {
614
- continue ;
615
- } elseif (isset ($ this ->knownDirectories [$ magentoModuleName ])
616
- && !isset ($ allModulePaths [$ magentoModuleName ])) {
617
- LoggingUtil::getInstance ()->getLogger (ModuleResolver::class)->warn (
618
- "Known directory could not match to an existing path. " ,
619
- ['knownDirectory ' => $ magentoModuleName ]
620
- );
621
- } else {
622
- $ enabledDirectoryPaths [$ magentoModuleName ] = $ allModulePaths [$ magentoModuleName ];
623
- }
624
- }
625
- return $ enabledDirectoryPaths ;
626
- }
627
-
628
602
/**
629
603
* Executes a REST call to the supplied Magento Base Url for version information to display during generation
630
604
*
0 commit comments