drupalextension icon indicating copy to clipboard operation
drupalextension copied to clipboard

Drush tests are failing

Open jhedstrom opened this issue 7 years ago • 2 comments

        PHP Fatal error:  Class '\Drupal\Driver\Fields\Drupal7\DefaultHandler' not found in drush/behat-drush-endpoint/behat-drush-common.inc on line 41
        PHP Stack trace:
        PHP   1. {main}() /home/travis/.composer/vendor/drush/drush/drush.php:0
        PHP   2. drush_main() /home/travis/.composer/vendor/drush/drush/drush.php:12
        PHP   3. Drush\Boot\BaseBoot->bootstrap_and_dispatch() /home/travis/.composer/vendor/drush/drush/includes/preflight.inc:66
        PHP   4. drush_dispatch() /home/travis/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
        PHP   5. call_user_func_array:{/home/travis/.composer/vendor/drush/drush/includes/command.inc:199}() /home/travis/.composer/vendor/drush/drush/includes/command.inc:199
        PHP   6. drush_command() /home/travis/.composer/vendor/drush/drush/includes/command.inc:199
        PHP   7. _drush_invoke_hooks() /home/travis/.composer/vendor/drush/drush/includes/command.inc:231
        PHP   8. call_user_func_array:{/home/travis/.composer/vendor/drush/drush/includes/command.inc:422}() /home/travis/.composer/vendor/drush/drush/includes/command.inc:422
        PHP   9. drush_behat() /home/travis/.composer/vendor/drush/drush/includes/command.inc:422
        PHP  10. drush_behat_op_create_node() drush/behat-drush-endpoint/behat.d7.drush.inc:67
        PHP  11. _drush_behat_expand_entity_fields() drush/behat-drush-endpoint/behat.d7.drush.inc:92
        PHP  12. _drush_behat_get_field_handler() drush/behat-drush-endpoint/behat-drush-common.inc:16
        PHP  13. _drush_behat_get_field_handler_common() drush/behat-drush-endpoint/behat.d7.drush.inc:219
        Drush command terminated abnormally due to an unrecoverable error.       [error]
        Error: Class '\Drupal\Driver\Fields\Drupal7\DefaultHandler' not found
        in
        drush/behat-drush-endpoint/behat-drush-common.inc,
        line 41
         (RuntimeException)

https://travis-ci.org/jhedstrom/drupalextension/jobs/366140253

Potentially related to https://github.com/drush-ops/behat-drush-endpoint/pull/8

jhedstrom avatar Apr 13 '18 17:04 jhedstrom

I think this is because the D7 tests are utilizing a global drush.

jhedstrom avatar Apr 13 '18 17:04 jhedstrom

Leaving this open so the temporary fix can be reverted when possible.

jhedstrom avatar Apr 16 '18 17:04 jhedstrom