@@ -511,15 +511,15 @@ public function scrollToTopOfPage()
511
511
* Takes given $command and executes it against bin/magento or custom exposed entrypoint. Returns command output.
512
512
*
513
513
* @param string $command
514
- * @param string $arguments
515
514
* @param integer $timeout
515
+ * @param string $arguments
516
516
* @return string
517
517
*
518
518
* @throws TestFrameworkException
519
519
*/
520
- public function magentoCLI ($ command , $ arguments = null , $ timeout = null )
520
+ public function magentoCLI ($ command , $ timeout = null , $ arguments = null )
521
521
{
522
- return $ this ->curlExecMagentoCLI ($ command , $ arguments , $ timeout );
522
+ return $ this ->curlExecMagentoCLI ($ command , $ timeout , $ arguments );
523
523
//TODO: calling bin/magento from pipeline is timing out, needs investigation (ref: MQE-1774)
524
524
// try {
525
525
// return $this->shellExecMagentoCLI($command, $arguments);
@@ -674,18 +674,18 @@ public function fillSecretField($field, $value)
674
674
* The data is decrypted immediately prior to data creation to avoid exposure in console or log.
675
675
*
676
676
* @param string $command
677
- * @param null $arguments
678
677
* @param null $timeout
678
+ * @param null $arguments
679
679
* @throws TestFrameworkException
680
680
* @return string
681
681
*/
682
- public function magentoCLISecret ($ command , $ arguments = null , $ timeout = null )
682
+ public function magentoCLISecret ($ command , $ timeout = null , $ arguments = null )
683
683
{
684
684
// to protect any secrets from being printed to console the values are executed only at the webdriver level as a
685
685
// decrypted value
686
686
687
687
$ decryptedCommand = CredentialStore::getInstance ()->decryptAllSecretsInString ($ command );
688
- return $ this ->magentoCLI ($ decryptedCommand , $ arguments , $ timeout );
688
+ return $ this ->magentoCLI ($ decryptedCommand , $ timeout , $ arguments );
689
689
}
690
690
691
691
/**
@@ -845,7 +845,7 @@ public function makeScreenshot($name = null)
845
845
* @return string
846
846
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
847
847
*/
848
- private function shellExecMagentoCLI ($ command , $ arguments , $ timeout ): string
848
+ private function shellExecMagentoCLI ($ command , $ arguments , $ timeout = 60 ): string
849
849
{
850
850
$ php = PHP_BINDIR ? PHP_BINDIR . DIRECTORY_SEPARATOR . 'php ' : 'php ' ;
851
851
$ binMagento = realpath (MAGENTO_BP . DIRECTORY_SEPARATOR . 'bin ' . DIRECTORY_SEPARATOR . 'magento ' );
@@ -865,13 +865,13 @@ private function shellExecMagentoCLI($command, $arguments, $timeout): string
865
865
* Takes given $command and executes it against exposed MTF CLI entry point. Returns response from server.
866
866
*
867
867
* @param string $command
868
- * @param string $arguments
869
868
* @param integer $timeout
869
+ * @param string $arguments
870
870
*
871
871
* @return string
872
872
* @throws TestFrameworkException
873
873
*/
874
- private function curlExecMagentoCLI ($ command , $ arguments , $ timeout ): string
874
+ private function curlExecMagentoCLI ($ command , $ timeout , $ arguments ): string
875
875
{
876
876
// Remove index.php if it's present in url
877
877
$ baseUrl = rtrim (
0 commit comments