我有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);我该如何解决这个问题呢?
发布于 2019-08-01 05:13:49
我今天碰巧遇到了同样的错误。这是因为dev/tests/acceptance中有一个旧的供应商目录,以前我们在这里存储composer.json文件,现在移到根目录。删除dev/tests/acceptance/vendor文件夹可解决该致命错误。
https://stackoverflow.com/questions/54894519
复制相似问题