Skip to content

Commit 85372e8

Browse files
committed
MQE-496: Allow passing multiple ActionGroup arguments into parameterized selector.
- Fixing quote logic, caught via verification tests.
1 parent 365bf6b commit 85372e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,8 @@ private function processQuoteBreaks($match, $argument, $replacement)
954954
$afterIndex = $beforeIndex + strlen($match) + 1;
955955

956956
// Determine if there is a " before/after the $match, and if there is only one " before/after match.
957-
$quoteBefore = $argument[$beforeIndex] == '"' && substr_count($argument, '"', 0, $beforeIndex+1)<1;
958-
$quoteAfter = $argument[$afterIndex] == '"' && substr_count($argument, '"', $afterIndex)<1;
957+
$quoteBefore = $argument[$beforeIndex] == '"' && substr_count($argument, '"', 0, $beforeIndex)<1;
958+
$quoteAfter = $argument[$afterIndex] == '"' && substr_count($argument, '"', $afterIndex+1)<1;
959959

960960
//Remove quotes at either end of argument if they aren't necessary. Add double-quote concatenation if needed.
961961
if ($quoteBefore) {

0 commit comments

Comments
 (0)