Skip to content

[Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException] Error HTTP response code: 403 Response:Given command not found valid in Magento CLI Command list. #3

@keoko

Description

@keoko

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:

$php = 'php';

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions