When running MFTF tests that calls magento Cli they may fail with the exception [Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException] Error HTTP response code: 403 Response:Given command not found valid in Magento CLI Command list.. This is related to an issue with Nix package php-with-extensions that do not set properly the constant PHPBIN_DIR.
As a workaround, you can hardcode the path to the correct php binary file in dev/tests/acceptance/utils/command.php
Instead of:
$php = PHP_BINDIR ? PHP_BINDIR . '/php' : 'php';
use:
When running MFTF tests that calls
magento Clithey may fail with the exception[Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException] Error HTTP response code: 403 Response:Given command not found valid in Magento CLI Command list.. This is related to an issue with Nix packagephp-with-extensionsthat do not set properly the constant PHPBIN_DIR.As a workaround, you can hardcode the path to the correct php binary file in
dev/tests/acceptance/utils/command.phpInstead of:
use: