We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bafd56 commit e68c41dCopy full SHA for e68c41d
src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php
@@ -457,7 +457,11 @@ public function scrollToTopOfPage()
457
*/
458
public function magentoCLI($command, $arguments = null)
459
{
460
- $apiURL = $this->config['url'] . getenv('MAGENTO_CLI_COMMAND_PATH');
+ // trim everything after first '/' in URL after (ex http://magento.instance/<index.php>)
461
+ preg_match("/.+\/\/[^\/]+\/?/", $this->config['url'], $trimmed);
462
+ $trimmedUrl = $trimmed[0];
463
+ $apiURL = $trimmedUrl . ltrim(getenv('MAGENTO_CLI_COMMAND_PATH'), '/');
464
+
465
$executor = new CurlTransport();
466
$executor->write(
467
$apiURL,
0 commit comments