File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Magento/FunctionalTestingFramework/StaticCheck Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class ActionGroupArgumentsCheck implements StaticCheckInterface
27
27
const ACTIONGROUP_NAME_REGEX_PATTERN = '/<actionGroup name=[" \']([^ \'"]*)/ ' ;
28
28
29
29
const ERROR_LOG_FILENAME = 'mftf-arguments-checks ' ;
30
- const ERROR_LOG_MESSAGE = 'MFTF Unused Arguments Check ' ;
30
+ const ERROR_LOG_MESSAGE = 'MFTF Action Group Unused Arguments Check ' ;
31
31
32
32
/**
33
33
* Array containing all errors found after running the execute() function.
@@ -141,13 +141,13 @@ private function findUnusedArguments($actionGroupXml)
141
141
preg_match (self ::ACTIONGROUP_NAME_REGEX_PATTERN , $ actionGroupXml , $ actionGroupName );
142
142
try {
143
143
$ actionGroup = ActionGroupObjectHandler::getInstance ()->getObject ($ actionGroupName [1 ]);
144
- } catch (XmlException $ e ){
144
+ } catch (XmlException $ e ) {
145
145
}
146
146
foreach ($ arguments [1 ] as $ argument ) {
147
147
//pattern to match all argument references
148
148
$ patterns = [
149
149
'(\{{2} ' . $ argument . '(\.[a-zA-Z0-9_\[\]\(\)., \'\/ ]+)?}{2}) ' ,
150
- '([(,\s \'] ' . $ argument . '(\.[a-zA-Z0-9_\[\]]+)?[),\s \']) '
150
+ '([(,\s \'$$ ] ' . $ argument . '(\.[a-zA-Z0-9_$ \[\]]+)?[),\s \']) '
151
151
];
152
152
// matches entity references
153
153
if (preg_match ($ patterns [0 ], $ actionGroupXml )) {
You can’t perform that action at this time.
0 commit comments