DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

Unable to reference entities in Drupal 8

Open TLyngeJ opened this issue 8 years ago • 1 comments

First, sorry for not creating a ticket for this when I created the PR. I might have gotten distracted and forgot.

When using the DrupalExtension to creating a new node, or an entity in general, and set a value in an entity reference field, the DrupalDriver fails to look up the entity from the database, as it's trying to look up the label of the entity instead of the key.

Pull request: https://github.com/jhedstrom/DrupalDriver/pull/94

TLyngeJ avatar Jul 22 '16 11:07 TLyngeJ

Could you give an example of a failing step using the DrupalExtension? I have entity references working fine in @given statements setting up nodes etc. in D8. The drupal extension has features of its own testing/demonstrating this, so if there is a bug then specifying a step would also help us add to that coverage.

jonathanjfshaw avatar Feb 01 '17 23:02 jonathanjfshaw