Skip to content

Commit fd02364

Browse files
committed
MQE-189: Fixed ModuleResolver to recover a previous bad merge.
1 parent 1dfb85e commit fd02364

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Magento/AcceptanceTestFramework/Config/FileResolver/Mask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function getFileCollection($filename, $scope)
6262
$modulesPath = $this->moduleResolver->getModulesPath();
6363

6464
foreach ($modulesPath as $modulePath) {
65-
$path = $modulePath;
65+
$path = $modulePath . '/' . $scope . '/';
6666
if (is_readable($path)) {
6767
$directoryIterator = new \RecursiveIteratorIterator(
6868
new \RecursiveDirectoryIterator(

src/Magento/AcceptanceTestFramework/Util/ModuleResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ public function getModulesPath()
159159
}
160160

161161
$enabledModules = $this->getEnabledModules();
162-
$modulePath = FW_BP . '/src/Magento/AcceptanceTestFramework';
163-
$allModulePaths = glob($modulePath . '/*');
162+
$modulePath = defined('TESTS_MODULE_PATH') ? TESTS_MODULE_PATH : TESTS_BP;
163+
$allModulePaths = glob($modulePath . '*/*');
164164
if (empty($enabledModules)) {
165165
$this->enabledModulePaths = $allModulePaths;
166166
return $this->enabledModulePaths;

0 commit comments

Comments
 (0)