Skip to content

Commit ec5d25a

Browse files
committed
MQE-980: [Annotations] <features> tag defaults to module
- CR Fixes.
1 parent e386744 commit ec5d25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magento/FunctionalTestingFramework/Test/Util/TestObjectExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private function extractModuleName($path)
138138
return "NO MODULE DETECTED";
139139
}
140140
$paths = explode(DIRECTORY_SEPARATOR, $path);
141-
if (!isset($paths[count($paths)-3])) {
141+
if (count($paths) < 3) {
142142
return "NO MODULE DETECTED";
143143
} elseif ($paths[count($paths)-3] == "Mftf") {
144144
// app/code/Magento/[Analytics]/Test/Mftf/Test/SomeText.xml

0 commit comments

Comments
 (0)