File tree 1 file changed +3
-1
lines changed
src/Magento/FunctionalTestingFramework/Test/Config/Converter/Dom 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class Flat implements ConverterInterface
18
18
const REMOVE_KEY_ATTRIBUTE = 'keyForRemoval ' ;
19
19
const EXTENDS_ATTRIBUTE = 'extends ' ;
20
20
const TEST_HOOKS = ['before ' , 'after ' ];
21
+ const VALID_COMMENT_PARENT = ['test ' , 'before ' , 'after ' , 'actionGroup ' ];
21
22
22
23
/**
23
24
* Array node configuration.
@@ -124,7 +125,8 @@ public function convertXml(\DOMNode $source, $basePath = '')
124
125
) {
125
126
$ value = $ node ->nodeValue ;
126
127
break ;
127
- } elseif ($ node ->nodeType == XML_COMMENT_NODE ) {
128
+ } elseif ($ node ->nodeType == XML_COMMENT_NODE &&
129
+ in_array ($ node ->parentNode ->nodeName , self ::VALID_COMMENT_PARENT )) {
128
130
$ uniqid = uniqid ($ node ->nodeName );
129
131
$ value [$ uniqid ] = [
130
132
'value ' => trim ($ node ->nodeValue ),
You can’t perform that action at this time.
0 commit comments