Hello, i hope this is the right place for my question / problem:
While testing a Drupal 8 site with behat, I am trying to create entity and terms fixtures by the "@Given :vocabulary terms:" and "@Given :type content:" step that correspond to DrupalContext->createTerms() and DrupalContext->createNodes().
Without the pathauto module i can say:
Given "foo" terms:
| name | path |
| MyFoo | /foo |
The path is saved as "alias" in the url_alias database table, and the term is reachable under /foo.
When pathauto is active, this no longer works, because the automated url alias is used and saved in the database. I can still call the html form on /admin/structure/taxonomy/manage/categories/add and uncheck the box (by "And I uncheck the box ..."), and then enter an alias.
I think it would help if i could set "Generate automatic URL alias" in the createTerms step, but i cannot find the fieldname to use for this, or any other way to archieve this.
Comments
Comment #3
JohannesR CreditAttribution: JohannesR commentedWe found a workaround for the problem by patching the termCreate and entityCreate methods in Drupal/Driver/Cores/Drupal8.php: