File tree 1 file changed +9
-2
lines changed
src/Magento/FunctionalTestingFramework/Util
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1626,6 +1626,12 @@ private function addUniquenessToParamArray($input)
1626
1626
return implode (", " , $ result );
1627
1627
}
1628
1628
1629
+ /**
1630
+ * Process pressKey parameterArray attribute for uniqueness function call and necessary data resolutions
1631
+ *
1632
+ * @param string $input
1633
+ * @return string
1634
+ */
1629
1635
private function processPressKey ($ input )
1630
1636
{
1631
1637
// validate the param array is in the correct format
@@ -1642,7 +1648,8 @@ private function processPressKey($input)
1642
1648
preg_match_all ('/[\[][^\]]*?[\]]/ ' , $ input , $ paramInput );
1643
1649
if (!empty ($ paramInput )) {
1644
1650
foreach ($ paramInput [0 ] as $ param ) {
1645
- $ arrayResult [static ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count ] = '[ ' . trim ($ this ->addUniquenessToParamArray ($ param )) . '] ' ;
1651
+ $ arrayResult [static ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count ] =
1652
+ '[ ' . trim ($ this ->addUniquenessToParamArray ($ param )) . '] ' ;
1646
1653
$ input = str_replace ($ param , static ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count , $ input );
1647
1654
$ count ++;
1648
1655
}
@@ -1662,7 +1669,7 @@ private function processPressKey($input)
1662
1669
continue ;
1663
1670
}
1664
1671
1665
- // Matches numbers
1672
+ // matches numbers
1666
1673
if (preg_match ('/^[\s]*(\d+?)[\s]*$/ ' , $ param )) {
1667
1674
$ result [] = $ param ;
1668
1675
continue ;
You can’t perform that action at this time.
0 commit comments