Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to create a Node entity_referencing a Team in Behat #444

Closed
boobaa opened this issue Jul 15, 2020 · 0 comments · Fixed by #445
Closed

Impossible to create a Node entity_referencing a Team in Behat #444

boobaa opened this issue Jul 15, 2020 · 0 comments · Fixed by #445
Assignees
Labels
bug Something isn't working
Milestone

Comments

@boobaa
Copy link
Contributor

boobaa commented Jul 15, 2020

Description

\Drupal\Driver\Fields\Drupal8\EntityReferenceHandler::expand() can't retrieve the label entity_key for the Team entity type, therefore a \Behat\Testwork\Call\Exception\FatalThrowableError is thrown when one tries to create a Node (or whatever entity type) that references a Team entity.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a node type with an entity_reference field to a Team.
  2. Try creating a node that references an existing team using \Drupal\Driver\DrupalDriver::createNode().

Actual Behavior

A \Behat\Testwork\Call\Exception\FatalThrowableError is thrown with the message Type error: Too few arguments to function Drupal\apigee_edge\Entity\AttributesAwareFieldableEdgeEntityBase::get(), 0 passed and exactly 1 expected.

Expected Behavior

The node gets created without errors.

Screenshots

(none)

Notes

(none)

Version Info

drupal/apigee_edge                                        1.11.0           Apigee Edge for Drupal.
drupal/core                                               8.8.4            Drupal is an open source content management platform powering millions of websites and applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants