Skip to content

Commit fc05c77

Browse files
committed
MQE-2158: support using actions from multiple modules in Suites
1 parent 967043e commit fc05c77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Magento/FunctionalTestingFramework/Suite/Generators/GroupClassGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ private function buildModuleActionsMustacheArray($action, $actionEntries)
190190
$multipleCommands = array_filter($multipleCommands);
191191
foreach ($multipleCommands as $command) {
192192
$actionEntries = $this->replaceReservedTesterFunctions(
193-
$command . PHP_EOL, $actionEntries,
193+
$command . PHP_EOL,
194+
$actionEntries,
194195
self::FUNCTION_PLACEHOLDER
195196
);
196197
}
@@ -221,7 +222,7 @@ private function replaceReservedTesterFunctions($formattedStep, $actionEntries,
221222
$end = self::FUNCTION_END;
222223
$resultingStep = preg_replace_callback(
223224
self::FUNCTION_REPLACE_REGEX,
224-
function($matches) use ($placeholder, $begin, $end) {
225+
function ($matches) use ($placeholder, $begin, $end) {
225226
return str_replace($placeholder, $begin . $matches[2] . $end, $matches[1]) . '(';
226227
},
227228
$formattedStep

0 commit comments

Comments
 (0)