Closed Kingdutch closed 1 year ago
https://github.com/jhedstrom/DrupalDriver/pull/250/commits/8177f645a229f40ba88b4c20daffe1a124c54445 changed how taxonomy term creation worked in 2.2.1 but this broke the functionality.
parent may be empty if multiple taxonomies are created in a single Given block as pointed out in https://github.com/jhedstrom/DrupalDriver/pull/257
parent
Given
Additionally id is not the right base field for the query but it should be name.
id
name
Finally the entityQuery does not return loaded entities but returns IDs so calling ->id() on it will break as well.
->id()
Hosting static patch so it can be easily used to fix our CI DrupalDriver-pr-260.patch
Came across this as well. Thanks for posting a patch!
https://github.com/jhedstrom/DrupalDriver/pull/250/commits/8177f645a229f40ba88b4c20daffe1a124c54445 changed how taxonomy term creation worked in 2.2.1 but this broke the functionality.
parent
may be empty if multiple taxonomies are created in a singleGiven
block as pointed out in https://github.com/jhedstrom/DrupalDriver/pull/257Additionally
id
is not the right base field for the query but it should bename
.Finally the entityQuery does not return loaded entities but returns IDs so calling
->id()
on it will break as well.