PHPunit Drupal8:“节点”实体类型不存在

问题描述 投票:0回答:0

用 drupal 生成模块后:

vendor/bin/drupal generate:module

我尝试在此文件中的新模块中运行单元测试:modules/custom/candidacy_analysisr/tests/src/Functional/LoadTest.php

所以我在创建 phpunit.xml 并将其放入核心后使用了这个命令

vendor/bin/phpunit --configuration core  modules/custom/candidacy_analyser/tests/src/Functional/LoadTest.php

但是我发现了这个错误:

有 1 个错误:

1) Drupal\测试

php drupal phpunit drupal-8
© www.soinside.com 2019 - 2024. All rights reserved.