0

我有 Magento 2.3,我想使用 Magento 功能测试框架 2.3 版,但是当我运行命令vendor/bin/mftf run:test AdminLoginTest运行测试时,出现以下错误:

==== Redirecting to Composer-installed version in vendor/codeception ====

Fatal error: Uncaught Error: Call to undefined function Codeception\Lib\codecept_absolute_path() in /Users/hanhan/Deskto
p/workspace/magento2/vendor/codeception/codeception/src/Codeception/Lib/ParamsLoader.php:25

在文件 PramsLoader.php 中,codecept_absolute_path()调用方法并给出错误,因为未定义此方法

$this->paramsFile = codecept_absolute_path($paramStorage);

我该如何解决这个问题?

4

1 回答 1

0

我今天碰巧遇到了同样的错误。这是因为在 dev/tests/acceptance 中有一个旧的供应商目录,以前我们存储 composer.json 文件,现在移动到根目录。删除 dev/tests/acceptance/vendor 文件夹可解决致命错误。

于 2019-07-31T21:13:49.373 回答