Skip to content

Test for creating multiple entity types

In the context of Envision Logistics App #95, we noticed test failures when we were using BehatDrupalContext "Given entities" steps for 2 different types of ECK entities. We believe this is a failure somewhere in BehatDrupalContext, since switching to manually creating such entities allowed the tests to pass.

TODO:

  • Introduce a second ECK entity type to test against
  • Create test scenario that creates entities in one type and then another - try to reproduce the failure:
Given content in the "facility_example" bundle of the "facility" entity from "features/facility_example.table.txt" # Consensus\BehatDrupalContext\Context\DrupalTestContentContext::contentInTheBundleOfTheEntityFrom()
      Fatal error: Object of class stdClass could not be converted to string (Behat\Testwork\Call\Exception\FatalThrowableError)
Edited by Derek Laventure