Skip to content

Non core fields dont work #3

@Skullywag

Description

@Skullywag

Im trying to use this extension to allow behat tests to create nodes on a remote server and have hit a stumbling block, it seems to work great until the list of fields being passed in the json contains a non core field. Things like "title", "author", "status" work fine, but adding a custom "long text" field breaks it with the error:

Fatal error: Class '\Drupal\Driver\Fields\Drupal7\DefaultHandler' not found in behat-drush-common.inc on line 41

Now there is a comment on the _drush_behat_get_field_handler_common function that i believe is relevant here but cant for the life of me figure it out, the Drupal 7 site in question itself is not managed by composer but all the behat stuff for it is. Im guessing I have to do something about the autoload.inc part but cant work that out.

Some more info that may or may not be useful is that the above is the command line erroring (the drush behat create-node command), when running the actual behat tests themselves with JUST core fields (the 3 mentioned above) I get:

Error: __clone method called on non-object in behat-drush-endpoint\behat.d7.drush.inc,

Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions