File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
src/Magento/FunctionalTestingFramework/Util Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,20 @@ public function getModulesPath()
209
209
}
210
210
211
211
$ enabledModules = array_merge ($ enabledModules , $ this ->getModuleWhitelist ());
212
+ $ enabledDirectoryPaths = $ this ->getEnabledDirectoryPaths ($ enabledModules , $ allModulePaths );
213
+
214
+ $ this ->enabledModulePaths = $ this ->applyCustomModuleMethods ($ enabledDirectoryPaths );
215
+ return $ this ->enabledModulePaths ;
216
+ }
217
+
218
+ /**
219
+ * Runs through enabled modules and maps them known module paths by name.
220
+ * @param array $enabledModules
221
+ * @param array $allModulePaths
222
+ * @return array
223
+ */
224
+ private function getEnabledDirectoryPaths ($ enabledModules , $ allModulePaths )
225
+ {
212
226
$ enabledDirectoryPaths = [];
213
227
foreach ($ enabledModules as $ magentoModuleName ) {
214
228
$ moduleShortName = explode ('_ ' , $ magentoModuleName )[1 ];
@@ -218,9 +232,7 @@ public function getModulesPath()
218
232
$ enabledDirectoryPaths [$ moduleShortName ] = $ allModulePaths [$ moduleShortName ];
219
233
}
220
234
}
221
-
222
- $ this ->enabledModulePaths = $ this ->applyCustomModuleMethods ($ enabledDirectoryPaths );
223
- return $ this ->enabledModulePaths ;
235
+ return $ enabledDirectoryPaths ;
224
236
}
225
237
226
238
/**
You can’t perform that action at this time.
0 commit comments