Skip to content

Commit 1e3e5e5

Browse files
committed
MQE-1040: MFTF standalone commands do not pass down constants correctly
- Updated filename
1 parent 7287ebe commit 1e3e5e5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

bin/mftf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (PHP_SAPI !== 'cli') {
1212
}
1313

1414
$autoloadPath = realpath(__DIR__ . '/../../../autoload.php');
15-
$testBootstrapPath = realpath(__DIR__ . '/../dev/tests/functional/_bootstrap.php');
15+
$testBootstrapPath = realpath(__DIR__ . '/../dev/tests/functional/standalone_bootstrap.php');
1616

1717
try {
1818
if (file_exists($autoloadPath)) {

src/Magento/FunctionalTestingFramework/_bootstrap.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
$projectRootPath = substr(FW_BP, 0, strpos(FW_BP, DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR));
1212
if (empty($projectRootPath)) {
1313
// If ProjectRootPath is empty, we are not under vendor and are executing standalone.
14-
require_once (realpath(FW_BP . "/dev/tests/functional/_bootstrap.php"));
14+
require_once (realpath(FW_BP . "/dev/tests/functional/standalone_bootstrap.php"));
1515
return;
1616
}
17+
defined('PROJECT_ROOT') || define('PROJECT_ROOT', $projectRootPath);
1718
$envFilepath = realpath($projectRootPath . '/dev/tests/acceptance/');
1819

1920

0 commit comments

Comments
 (0)