【问题标题】:Codecept_absolute_path () not found error when executing the mftf run:test command in Magento 2.3在 Magento 2.3 中执行 mftf run:test 命令时找不到 Codecept_absolute_path () 错误
【发布时间】:2019-02-26 21:37:34
【问题描述】:

我有 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);

我该如何解决这个问题?

【问题讨论】:

    标签: php magento magento2 magento-2.3


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-20
      • 1970-01-01
      • 1970-01-01
      • 2020-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      相关资源
      最近更新 更多