diff --git a/composer.json b/composer.json index 04ab8dc71..264f83217 100755 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "sort-packages": true }, "require": { - "php": ">7.4", + "php": ">=7.4", "ext-curl": "*", "ext-dom": "*", "ext-iconv": "*", diff --git a/composer.lock b/composer.lock index f991cba4d..91a9a555b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bb0cc8e8f9d2b00f43ef08e7d2be0d59", + "content-hash": "a17423dfb9da3204c6b152578a3fb76d", "packages": [ { "name": "allure-framework/allure-codeception", @@ -8329,7 +8329,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">7.4", + "php": ">=7.4", "ext-curl": "*", "ext-dom": "*", "ext-iconv": "*", diff --git a/etc/config/command.php b/etc/config/command.php index 0d8fc7997..01eb1128b 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -31,6 +31,7 @@ try { $process->run(); $output = $process->getOutput(); + echo $output; if (!$process->isSuccessful()) { $failureOutput = $process->getErrorOutput(); if (!empty($failureOutput)) { @@ -47,6 +48,7 @@ } if (checkForFilePath($output)) { + echo __LINE__.$output; $output = "CLI output suppressed, filepath detected in output."; } diff --git a/src/Magento/FunctionalTestingFramework/DataTransport/Protocol/CurlTransport.php b/src/Magento/FunctionalTestingFramework/DataTransport/Protocol/CurlTransport.php index 6d064feb5..90b07af70 100644 --- a/src/Magento/FunctionalTestingFramework/DataTransport/Protocol/CurlTransport.php +++ b/src/Magento/FunctionalTestingFramework/DataTransport/Protocol/CurlTransport.php @@ -170,7 +170,7 @@ public function write($url, $body = [], $method = CurlInterface::POST, $headers public function read($successRegex = null, $returnRegex = null, $returnIndex = null) { $response = curl_exec($this->getResource()); - + print_r($response); if ($response === false) { throw new TestFrameworkException(curl_error($this->getResource())); } diff --git a/src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php b/src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php index 4f240a3bd..73fe749fc 100644 --- a/src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php +++ b/src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php @@ -571,6 +571,9 @@ public function magentoCLI($command, $timeout = null, $arguments = null) ); $executor = new CurlTransport(); + echo "api url".$apiURL; + echo "token ".WebApiAuth::getAdminToken(); + echo "arguments" .$arguments; $executor->write( $apiURL, [