Skip to content

Commit 2d5c68e

Browse files
authored
Merge pull request #12 from magento-pangolin/MQE-2353
[Pangolin] MQE-2353: MFTF SVC does not resolve module name correctly for bundle …
2 parents 3b8b5a7 + c73c3b8 commit 2d5c68e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Scanner/ModuleNamespaceResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function resolveByViewDirFilePath(string $filePath): string
4848
*/
4949
public function resolveByTestMftfPath(string $filePath): string
5050
{
51-
$match = [];
52-
preg_match('/(?<vendor>[\-\w]*?)(\/?)(?<module>[\w]*)\/Test\/Mftf/', $filePath, $match);
53-
return empty($match['vendor']) ? $match['module'] : sprintf('%s_%s', $match['vendor'], $match['module']);
51+
$matches = [];
52+
preg_match('/(?<module>[\w-]*)\/Test\/Mftf/', $filePath, $matches);
53+
return sprintf('%s', $matches['module']);
5454
}
5555
}

0 commit comments

Comments
 (0)