0

I am using magento commerce cloud, and when I try to execute selected command below:

vendor/bin/mftf generate:tests

Then this error is shown in console:

Uncaught Error: Class "DOMDocument" not found in ../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Config/Dom.php:366

All solutions online are pointing to the same thing, php extensions dom and xml are missing. I installed both of them through DockerFile in config/php folder and when I checked enabled php extensions with php -i. Both are installed.

But error still happens again. Thanks!

1 Answer 1

0

I would suggest creating a php file with phpinfo() and check both extensions there + running the composer update once you are sure the extensions are present.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.