Skip to content

Commit ddbe942

Browse files
committed
MQE-1060: Allow magentoCLI Action To Run Without Manipulating Command
That Is Sent To CLI - Added Arguments to correct location
1 parent 2f4f8df commit ddbe942

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,19 @@ public function scrollToTopOfPage()
438438
* @param string $arguments
439439
* @return string
440440
*/
441-
public function magentoCLI($command, $arguments)
441+
public function magentoCLI($command, $arguments = null)
442442
{
443443
$apiURL = $this->config['url'] . getenv('MAGENTO_CLI_COMMAND_PATH');
444444
$executor = new CurlTransport();
445-
$executor->write($apiURL, [getenv('MAGENTO_CLI_COMMAND_PARAMETER') => $command], CurlInterface::POST, [$arguments]);
445+
$executor->write(
446+
$apiURL,
447+
[
448+
getenv('MAGENTO_CLI_COMMAND_PARAMETER') => $command,
449+
'arguments' => $arguments
450+
],
451+
CurlInterface::POST,
452+
[]
453+
);
446454
$response = $executor->read();
447455
$executor->close();
448456
return $response;

0 commit comments

Comments
 (0)