Skip to content

Commit c1bdcb2

Browse files
committed
MQE-1234: Allow XML Parser to read XML comment into comment action; Code format fix
1 parent 5ffd72f commit c1bdcb2

File tree

1 file changed

+2
-2
lines changed
  • src/Magento/FunctionalTestingFramework/Test/Config/Converter/Dom

1 file changed

+2
-2
lines changed

src/Magento/FunctionalTestingFramework/Test/Config/Converter/Dom/Flat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ public function convertXml(\DOMNode $source, $basePath = '')
124124
// A new "xmlComment" node is inserted when xml comment is found in non-annotation portion of tests
125125
// or in non-arguments portion of action groups
126126
} elseif ($node->nodeType == XML_COMMENT_NODE) {
127-
if ( (strpos($basePath, '/tests/test') !== false
127+
if ((strpos($basePath, '/tests/test') !== false
128128
&& strpos($basePath, '/tests/test/annotations') === false)
129129
|| (strpos($basePath, '/actionGroups/actionGroup') !== false
130-
&& strpos($basePath, '/actionGroups/actionGroup/arguments') === false) ) {
130+
&& strpos($basePath, '/actionGroups/actionGroup/arguments') === false)) {
131131
$nodePath = $basePath . '/' . self::COMMENT_ACTION;
132132
$arrayKeyAttribute = $this->arrayNodeConfig->getAssocArrayKeyAttribute($nodePath);
133133
$arrayKeyValue = self::COMMENT_ACTION . uniqid();

0 commit comments

Comments
 (0)